Re: Re: Hello and first question

From: Date: Thu, 27 May 2004 00:33:44 +0000
Subject: Re: Re: Hello and first question
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-23852@lists.php.net to get a copy of this message
My preference is to use $_REQUEST over $_POST and $_GET. Also, if you are really keen on short variable names, you can use the function: extract($_REQUEST); and it will create short variable names. You might want to look this up in the manual for more details (to do with name collisions etc.) Ross. At 10:01 AM 27/05/2004, you wrote:
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> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
. . Ross Honniball. JCU Bookshop Cairns, Qld, Australia. .

« previous php.windows (#23852) next »