Re: Passing text info using $PHP_SELF

From: Date: Mon, 16 Dec 2002 07:41:55 +0000
Subject: Re: Passing text info using $PHP_SELF
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128372@lists.php.net to get a copy of this message
At 20:23 15.12.2002, Lightfirst said: --------------------[snip]-------------------- >I am using PHP and MySql and wanted to know if it possible to pass the value >inserted in a text box back to the page using PHP_SELF. Bellow is the >snipped of code. The part that is not working is &q=input. Any ideas? > ><form name=\"update\" method=\"post\" >action=\"$PHP_SELF?action=change&id=$id&q=input\"> --------------------[snip]-------------------- Most certainly register_globals is off in your php.ini file. Try using $_SERVER['PHP_SELF'] instead of $PHP_SELF. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#128372) next »