Hello,

I have a display page that includes certain fields that are updated. When the user 
clicks the "UPDATE" it goes to an update.cfm page. I've included a "BACK to Query 
Results page" button with a onClick="history.go(-1)" script in the update.cfm page to 
go back after the update has been made. 

What I would like is after the user clicks "UPDATE" and the field(s) are updated by 
the update.cfm page it would automatically return them to the original page with the 
"updated" fields w/o clicking any "BACK to Query Results page" button.

Any ideas or suggestions? I'm thinking <CFLocation> but I don't think it is good.

Thanks. (code for update.cfm below)

Robert O.



<cfquery name="update" datasource="wweb">
UPDATE wweb SET Status = '#form.statuslist#', Activatedby = '#Form.activatedby#'
Where ID = #form.ID# 
</cfquery>

<b><font face="Arial" size="3">Record has been updated.</font></b>
<p>
<font face="Arial" size="2"><b>
<input type="button" value="BACK to Query Results page" 
onClick="history.go(-1)"></b></font>
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to