Forum Moderators: coopster
basically i have a <select><option></option></select> set in which i populate them with information from mysql. not a problem.
my issue is, is there a way for the information to automatically post back upon selecting on of the options?
if so can it be done in just php? if not any links to the javascript to do it, i tend to avoid mixing in javascript don't ask me why.
<script type="text/javascript">
function doSomething(){
document.form1.submit();
}
</script>
<form id="form1" name="form1" method="post" action="">
<select name="menu" id="menu" onchange="doSomething()">
<option>item1</option>
</select>
</form>
When the user changes the value of the menu it will submit the form.
if it was a button click i could use $_POST['Submit'] but thats not working in this case.
once again thank you!
Edit: Found answer print_r($_POST); revealed that althought submit wasn't happening the name of the select box was.
Once again thank you for your help you've been a godsend!
[edited by: AWSwS at 8:50 pm (utc) on Aug. 13, 2008]