drop down menu question
Posted: Sat Jul 17, 2004 4:27 am
how do you make it so when a drop down item is selected the form is submitted?
any help is much appreciated TY!
any help is much appreciated TY!
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
<select name="mapsearch" onChange="document.form.submit();" >
?>blah blah document.form is not an object or is null
Code: Select all
<select name="mapsearch" onChange="document.formname.submit();" >
// where formname is the actual name of the form.
<select name="mapsearch" onChange="document.formsї'formname'].submit();" >
// same as above
<select name="mapsearch" onChange="document.formsї0].submit();" >
// where the form is the first form on the page -- formsї1] the second form, etc...
<select name="mapsearch" onChange="this.form.submit();" >
// feyd's suggestion and the most often used.Code: Select all
tags [/color]