Re: Hello and first question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux