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!

How to make the radio button selection go to different response page

Status
Not open for further replies.

skw

Instructor
Jun 1, 1999
19
US
I'm trying to make a perl script respond to user selection from form object radio button value of "Yes" or "No". That is, if the user selects "Yes", then the form results will be parsed and user sent to an html page, e.g., "received.html"

If the user selects radiobutton "NO", completes the remainder of the form and submits, then the user is sent to an html page e.g., "weneedtofollowup.html"

How can I do this in Perl?

I'd started using the following script but realised that the value would use what I have there (No.html and Yes.html) and not values of "Yes" or "No"

<input type=&quot;radio&quot; name=&quot;receipt&quot; value=&quot;No.html&quot; onclick=&quot;document.forms[0].action = this.value&quot; /> ) YES
<br />
<input type=&quot;radio&quot; name=&quot;receipt&quot; value=&quot;Yes.html&quot; onclick=&quot;document.forms[0].action = this.value&quot; /> ) NO

Can someone help? I need this resolved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top