Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

want to use js onchange on a select box to resubmit a query to mysql

Status
Not open for further replies.

fowlerlfc

MIS
Joined
Mar 20, 2002
Messages
136
Location
US
but unfortunately i don't know where to begin...

here's what i'm looking for exactly:

i want to have a select box, and whenever it changes, i would like the variable stored there to be included in a mysql query that will resubmited when the onchange event if fired...

is this possible? if so, can someone point me at a tutorial or perhaps a code snippet?

thanks in advance for all your help.
 
Code:
<select name=&quot;myValue&quot; onChange=&quot;document.form.submit();&quot;>
<option>First</option>
<option>Second</option>
</select>

Adjust your form name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top