Re: Hello and first question

From: Date: Thu, 27 May 2004 00:01:24 +0000
Subject: Re: Hello and first question
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-23851@lists.php.net to get a copy of this message
Chris Patrick Carias Stas wrote:
I have problems running php scripts under w2k. for example, a form to send a mail. I has 3 fields, name, email and msg. The actions goes through POST to a file send.php. In send.php i try to use the variables $name, $email and $msg, but it says they are not declared. The same script works fine under linux. I tried installing apache with php instead of IIS but the same thing happens. I installed the cgi and de module version of php, but the same error occurs. Any sugestions? Chris
The register_globals php.ini setting is set to 0 on your windows box. This is, however, a *good* thing. You should generally use the superglobal arrays to access these variables so that you know exactly where your variables are coming from. $_POST $_GET $_REQUEST $_COOKIE $_FILES -- paperCrane <Justin Patrin>

« previous php.windows (#23851) next »