FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How can I change this form?





textmotif
Code:
<form name="form1">
<select name="select1" OnChange="location.href=form1.select1.options[selectedIndex].value">
     <option selected>Please Select...
     <option value="NUMBER">option1</option>
     <option value="NUMBER">option2</option>
     <option value="REDIRECT">option3</option>
</select>
</form>


I'm like the third option only to redirect. The other two go to a gateway after submit is pressed.

Can I use something else besides value, because prices need to go in 2 out of the three options.

Thanks in advance.
badai
Code:
<form>
<select onchange="location.href=this.options[selectedIndex].value">
     <option selected>Please Select...
     <option value="http://google.com">Google</option>
     <option value="http://facebook.com">Facebook</option>
     <option value="http://frihost.com">Frihost</option>
</select>
</form>


not really clear what you intend to do anyway.

if you got a submit button, don't use onchange. instead use onclick (at submit button) or onSubmit (at form)
Related topics
Looking for easy FormMail Script
How to change text in file field?
Support Danish
The Third Best Page In The Universe.
Php form wanted ( DONE )
Death?
select boxes value change?
Need a simple Contact form
For those who need a contact form
Subdomain change requests form ready
[Official]Wii
Simple Machine Forums Problem
How did the universe come to be, if there is no God?
Acount ?
End of plastic bags!
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> Design Tips

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.