Script for have different radio button take you to different page

Reply

Join Date: Apr 2004
Posts: 19
Reputation: jtf27 is an unknown quantity at this point 
Solved Threads: 0
jtf27 jtf27 is offline Offline
Newbie Poster

Script for have different radio button take you to different page

 
0
  #1
Mar 17th, 2006
Hi

I have a page where i wish to have my customers make a choice from three options each option then needs to take them to a different page for the next part of the sign-up process.

Any help would be great

thanks in Advance
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 6
Reputation: John.Nye is an unknown quantity at this point 
Solved Threads: 0
John.Nye John.Nye is offline Offline
Newbie Poster

Re: Script for have different radio button take you to different page

 
0
  #2
Jun 3rd, 2006
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 .
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC