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
Can someone please provide me an example of how to make radio button selection go to a different response form.

E.g., Radio buttons for Yes and No. If user selects "No", finishes completing the form and submit then it will go to "no_response.html".

If the user selects "Yes" radio button, and clicks submit, then it will go to "yes_response.html"

Thanks in advance.
 
<input type=&quot;radio&quot; name=&quot;response&quot; value=&quot;yes_response.html&quot; onclick=&quot;document.forms[0].action = this.value&quot; /> ) YES
<br />
<input type=&quot;radio&quot; name=&quot;response&quot; value=&quot;no_response.html&quot; onclick=&quot;document.forms[0].action = this.value&quot; /> ) NO
 
jemminger (TechnicalUser), I used your example above but got the html as the value depending on which radiobutton was selected. That is, the return/results page shows &quot;no_response.html&quot; as the value instead of &quot;NO&quot;.

Your help is most appreciated and thanks.
 
oh...do you mean after the form is submitted, the page will redirect to &quot;yes_response.html&quot; or &quot;no_response.html&quot;?
 
jemminger (TechnicalUser)

The form is a basic web form, that uses perl. User fills it out and clicks submit and the results are emailed to recipients. The user gets a &quot;response received&quot; page after clicking email.

What I'm trying to do per the question above is to have the user sent to either a &quot;no_response&quot; html page if he selects radiobutton value=NO or send him to &quot;yes_response.html&quot; if he selects radiobutton value=&quot;YES&quot;.

The form results must not show the html page as the value but the values of either &quot;yes&quot; or &quot;no&quot;

Something tells me that this may be a Perl question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top