View Full Version : using a button on a form
salating
07-14-2004, 02:04 PM
i have a form with 3 option buttons and one button for submit.
i want the user to be able to select one of the radio buttons that when they click submit it sends them to the page they requested.
i am new at this so any help is appreciated
thanks
if you want to use buttons, then i would make a button link it to the page that you specify and repeat that for all your buttons
<html>
<FORM METHOD="LINK" ACTION="page1.htm">
<INPUT TYPE="radio" VALUE="Clickable Button">
</FORM>
thats the most i could get for you, maybe someone else can help you on that part.the action you can change to any page you want, Value is what the button will say, hope that helps :)
salating
07-14-2004, 03:07 PM
i got 3 want to use the 3 opion buttons and one push button
i want them to select an option button then click the puch button to send them th the selected option button.
i could use 3 buttons, but this is for a business and i want it to look good
agent002
07-16-2004, 12:29 PM
Try this:
<form action="" method="get">
<input type="radio" name="goto" value="http://www.google.com/"
onclick="this.form.action = this.value;"> Google<br>
<input type="radio" name="goto" value="http://www.htmlforums.com/"
onclick="this.form.action = this.value;"> HTMLForums<br>
<input type="radio" name="goto" value="http://www.opera.com/"
onclick="this.form.action = this.value;"> Opera<br><br>
<input type="submit" value="Go">
</form>
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.