Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

back to previous page with values

Status
Not open for further replies.

JeanneZ

Programmer
May 1, 2003
55
US
Hi, Web experts,

I have a page (DataCollect.cfm) with 20 checkboxs and several other input fields. Those checked and input values will be inserted into a table. After the user clicks SAVE button, it will go to another page (DaataSave.cfm) to display all values selected and input in a page with YES and NO buttons to confirm with the user before saving the values into the table. If the user clicks YES, the values will be inserted into a table, then go to a page (SelectJob.cfm); if the user selects NO, it will go back to the previous page (DataCollect.cfm) and lets user correct the values.
The problem is, when I click NO,
<INPUT TYPE="SUBMIT" name="BackBtn" VALUE=" NO " onclick="window.location='DataCoollect.cfm'">
all the values selected and input by the user were gone in DataCollect page. The user has to re-select and enter values again.
I would like to know how I can go back to the previous page with all the values selected and entered so that the user could see them and correct the wrong values and keep the right values.

Thanks a lot for any help.
 
Code:
<input type="button" name="BackBtn" value="No" onClick="javascript:window.history.go(-1);">

Hope This Helps!

ECAR
ECAR Technologies

"My work is a game, a very serious game." - M.C. Escher
 
Thank you very much. It is just what I want. It's works.
Thanks again for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top