register_globals, an option in the php.ini file has been denegrated and will
shortly no longer be supported in PHP.  You can still turn it on (which
should fix your problem); but, in future releases you will need to use
variables such as $_POST['name'] to get your post variables.  As a fix, at
the top of your document you can do something like:

$name = $_POST['name']; //to set the $name variable

OR

$name = $REQUEST['name'];

See:  http://www.php.net/manual/en/language.variables.external.php

for more information.

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit


> -----Original Message-----
> From: Adrian Partenie [mailto:adrian.partenie@;artelecom.net]
> Sent: Friday, November 01, 2002 7:52 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] I could use some help
> 
> 
> Hello, 
> 
>  I have some really big problems with php4.2.3& apache1.3.23 
> under win2000. It seems that in a simple form like this:
> 
> <form  action="new_date.php" method="post" >
>  <input type="text" name="name" >
>  <input type="Submit" name="submit" value="Enter information">
>  </form>
> 
> when new_date.php is called $name remains uninitialized. The error is:
> 
> [Fri Nov 01 14:30:37 2002] [error] [client 127.0.0.1] PHP 
> Notice:  Undefined variable:  death in 
> e:\Apache\htdocs\test\new_date.php on line 13.
> 
> Also if I use $PHP_SELF in a similar form, I get :Undefined 
> variable:  PHP_SELF in e:\Apache\htdocs\test\foo.html
> 
> I havetried to use php as cgi executabile or as module for 
> apache but the errors are the same. Under Linux everything works fine.
> 
> Thanks, 
> Adrian
> 
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to