...

View Full Version : drop down box onchange event



alex57
12-18-2006, 10:17 PM
Hello,

I want to create a drop down box with an onchange event. When a new value is selected I want a value to be posted to another page. Is there a way to post a value within an onchange event?

Could someone please provide some example code too please.

Thanks

nikkiH
12-18-2006, 10:55 PM
A normal form, with a method of POST.

select event:

onchange="this.form.submit();"

HTH

alex57
12-19-2006, 12:20 AM
thanks that worked

JohnDubya
02-21-2007, 09:39 PM
This is exactly what I was needing. I was trying to figure out a way for my users to be able to just select an option, and it would $_POST the value, and this did it perfectly. Thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum