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

Passing Radio buttons value between 2 asp files 1

Status
Not open for further replies.

RonenW

Programmer
Jan 17, 2001
4
IL
Hi,
I would like to know how can I pass a radio button value between tow asp files ?

Thanks,
RonenW.
 
RADIO1.HTM

<HTML>
<form method=post action=radio2.asp id=form1 name=form1>
Do you like rowing?<br>
<input type=radio name=fRadio value=Y>Yes<br>
<input type=radio name=fRadio value=N>No
<br>
<input type=submit>
</form>
</HTML>


RADIO2.ASP
<%@ Language=VBScript %>
<%
Response.Write &quot;You answered &quot; & Request.Form(&quot;fRadio&quot;)
%>

br
Gerard
 
You could also use a hidden text box in the form. Add an OnClick event to each of your radio buttons. When the user clicks on the radio button, have the hidden text box value change. The use 'myValue=request.querystring('myRadioButtonName') - replacing the single quotes with double qoutes.

Jason
 
Am I supposed to see something on the RADIO2.asp page?
Because I ain't.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top