Javascript question

From: Date: Thu, 20 Nov 2003 18:24:08 +0000
Subject: Javascript question
Groups: php.general 
Request: Send a blank email to php-general+get-170463@lists.php.net to get a copy of this message
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

« previous php.general (#170463) next »