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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio and Check box Selections passed across multiple pages

Status
Not open for further replies.

axsom1

Technical User
Feb 27, 2001
67
US
I tried searching but had no luck with finding an answer. I know this is a silly question, but for the life of me can't think of what I need to do to get this to work.

I currently have a form with radio and check boxes, when the user selects the radio and check boxes and clicks submit I would like to be able to bring up a review screen. How do I get the selected radio and check boxes to show respectively on the review screen?

Any help is greatly appreciated!
John Axsom
 
I'm guessing that "review screen" is just a duplicate of the original form that allows the user to review/edit what they just submitted. If that's the case you could:
1. Post the form to itself, grab the values and plug them in where they apply.
2. Post the form to another page that is a copy of the original, grab the values and plug them in.

In both cases you'll need to test for each of the elements:
<%
If request.form(&quot;myCheckBox1&quot;) <> &quot;&quot; then
chk1=request.form(&quot;myCheckBox&quot;)
End if
%>

Then in the actual control:
<input type=&quot;checkbox&quot; name=&quot;Whatever&quot; <%IF chk1=&quot;Whatever your value was&quot; THEN%>CHECKED<%END IF%> Value=&quot;Whatever your value is&quot;>
 
Thanks! I knew it was something simple, I appreciate it.

John Axsom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top