Re: Accessing form variables

From: Date: Wed, 20 Mar 2002 16:20:41 +0000
Subject: Re: Accessing form variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-89353@lists.php.net to get a copy of this message
If your form is: <SELECT name=a> <OPTION value=1>1</OPTION> <OPTION value=2>2</OPTION> </SELECT> <SELECT name=b> <OPTION value=1>1</OPTION> <OPTION value=2>2</OPTION> </SELECT> Then you'd have two php post variables available, a and b, each would have a value of 1 or 2, which you could get from HTTP_POST_VARS or, with later php versions, $_POST["a"] and $_POST["b"]. Joshua E Minnie wrote:
I have a form with a menu which I need multiple select on. How does PHP handle this? I have to use $HTTP_POST_VARS["somevariable"] to access somevariable from the form. -- Joshua E Minnie CIO josh@acsurf.net "Don't work for recognition, but always do work worthy of recognition."


« previous php.general (#89353) next »