Re: Re: Hello and first question

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

 



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. .

--
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