Just use the history.go(-1) after updating the db in your update.cfm page

Thanks,
Dave 
 
-----Original Message-----
From: Robert Orlini [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 25, 2002 9:25 AM
To: CF-Talk
Subject: history from update

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>

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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