Re: Problem with HTTP_POST_VARS

From: Date: Fri, 26 Jul 2002 00:37:09 +0000
Subject: Re: Problem with HTTP_POST_VARS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109635@lists.php.net to get a copy of this message
You missed the $ before HTTP_POST_VARS. its $HTTP_POST_VARS (its a variable, not a constant. only constants dont have a $ before them) Jason Reid jason@achost.ca -- AC Host Canada www.achost.ca ----- Original Message ----- From: "bob" <subscriptions@nhinsights.com> To: <php-general@lists.php.net> Sent: Thursday, July 25, 2002 6:29 PM Subject: [PHP] Problem with HTTP_POST_VARS > Hello, > > I'm trying to do a simple form for a local organization and I'm running into > problems with the server. I am unable to get any of the variables in the > html code to post across to the php file. So, I'm figuring register_globals > is off. So I change my code to use HTTP_POST_VARS and HTTP_GET_VARS and get > this error: > > Parse error: parse error in > /usr/local/etc/httpd/vhosts/htdocs/scripts/join.php on line 3 > > Here is a snippet of the first few lines of my code: > > > <?php > > $Agree_to_Terms_of_Membership = > HTTP_POST_VARS["Agree_to_Terms_of_Membership"]; > $realname = HTTP_POST_VARS["realname"]; > $Company_Name = HTTP_POST_VARS["Company_Name"]; > $Description = HTTP_POST_VARS["Description"]; > $Street_Address = HTTP_POST_VARS["Street_Address"]; > > I did a phpinfo and their ISP is running PHP Version 4.0B2 and I can see > track_vars is on. > > What is going on here? Any suggestions as to what I'm doing wrong? > > Thanks. > > Rob. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#109635) next »