| | |
Script for have different radio button take you to different page
Please support our Existing Scripts advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2006
Posts: 6
Reputation:
Solved Threads: 0
The radio buttons are part of a from that may contain other data that will be transmitted to the next step in the process (these are my assumptions), so something like this would give the reults you need:
<input type=radio name="somename" onClick="
form.action = 'destination URL 1';
"> Option 1
<input type=radio name="somename" onClick="
form.action = 'destination URL 2';
"> Option 2
<input type=radio name="somename" onClick="
form.action = 'destination URL 3';
"> Option 3
This will cause the Form Submit (by whatever method invoked) to direct the form contents to the appropriate action URL. Be sure they have selected one of the radio buttons. You may wish to have one preselected and the action directed to that one's URL. The URL should be either aa full http://.... path or the relative path .
<input type=radio name="somename" onClick="
form.action = 'destination URL 1';
"> Option 1
<input type=radio name="somename" onClick="
form.action = 'destination URL 2';
"> Option 2
<input type=radio name="somename" onClick="
form.action = 'destination URL 3';
"> Option 3
This will cause the Form Submit (by whatever method invoked) to direct the form contents to the appropriate action URL. Be sure they have selected one of the radio buttons. You may wish to have one preselected and the action directed to that one's URL. The URL should be either aa full http://.... path or the relative path .
![]() |
Similar Threads
- selecting radio button values (Java)
- Radio Button If Statement (PHP)
- Retaining radio button value during paging (ASP)
- Testing Which Radio Button is selected (ASP.NET)
- dynamically generated textboxes & radio buttons php, insert into db (PHP)
- Want to use radio button or menu bar instead of combo box (Java)
- Am not able to get a radio button selection to display in output (PHP)
- Security Settings -> Java permission -> Custom (radio button) -> Java Custom Settings (Web Browsers)
- Problem passing value from radio button to second page. (PHP)
Other Threads in the Existing Scripts Forum
- Previous Thread: I need a script...
- Next Thread: Good portal w/ Forum and Classified Ads sections
| Thread Tools | Search this Thread |





