Re: Simple Unidentified Variable
| From: | Analysis & Solutions | Date: | Wed, 08 May 2002 06:01:24 +0000 |
| Subject: | Re: Simple Unidentified Variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96533@lists.php.net to get a copy of this message | ||
Hi Jeremy:
On Wed, May 08, 2002 at 01:06:16PM +0800, Jeremy wrote:
>
> I am very new to PHP and when doing the tutorial on the mysql site, ...
>
> Notice: Undefined variable: "value" in .....\welcome.php on line 2
>
> even though they have been entered in the html form and they are in
> $HTTP_POST_VARS.
Things have changed in PHP. GET and POST variables are no longer
automatically globalized. Use "$_POST['value']" rather than "$value."
Enjoy,
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409