I know this may be off-topic but I've got a problem that I do not know how
to work around...
I'm displaying a <SELECT> list and the problem is getting the value back
after an 'onChange' event. Code is like this:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function jump()
{
document.buttons.submit();
}
-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFAB4" LEFTMARGIN="0" TOPMARGIN="0">
<FORM NAME="buttons" TARGET="buttons" ACTION="buttons.php" METHOD="get">
<INPUT TYPE="hidden" NAME="pass" VALUE="1">
<CENTER>State</CENTER>
<CENTER>
<SELECT onChange="jump()">
<OPTION NAME="state_name" VALUE="Colorado">Colorado</OPTION>
<OPTION NAME="state_name" VALUE="New Mexico">New Mexico</OPTION>
</SELECT>
</CENTER>
</FORM>
<BODY>
</HTML>
I need to get the "state_name" back but all I get in the $_GET['state_name']
array is an empty value. Any clue as to why this won't work??
I don't want to use a 'Submit' button as this is very cumbersome when I add
the other 3 <SELECT> lists...
Robin 'Sparky' Kopetzky
Black Mesa Computers/Internet Service
Grants, NM 87020
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php