Re: [LIP] PHP_SELF not working
<ripley-gGZFqZ9RcmRmR6Xm/[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Organization | Portal Agory S.A. |
| Message-ID | <[email protected]> |
Hi :)
You can have the same problem with the variables from the forms
/passed through method get and post/ and all other global variables.
They are divided in groups - like SERVER, GET, POST etc.
Instead of writing $field1 you have to write $_POST['field1'] and
$_GET['field1'] - just like mentioned $_SERVER['PHP_SELF']
generally $NAME_OF_GROUP['name_of_varable']
IN the newest versions of PHP the option register_globals is by
default set to no - there're serious safety reasons to do it :-)
Here you can find what group does each superglobal belong.
http://www.php.net/manual/en/language.variables.predefined.php
Hope to Help
Asia Sledzik
------ WiadomoĹÄ oryginalna ------
Od: H S Rai <[email protected]>
Data: 2003-12-31 05:20
Temat: [LIP] PHP_SELF not working
:-> In PHP, variable $PHP_SELF is not working. It was working fine
on RH
:-> 7.1, but display nothing on RH8 and RH9.
:->
:-> For example the code gicen below display:
:->
:-> Begin H.S.Rai
:->
:-> This mean, it prints nothing for "echo $PHP_SELF;"
:->
:-> What may be the reason.
:->
:-> --
:-> H.S.Rai
:->
:-> <html>
:-> <body>
:-> <?php
:-> echo "\nBegin\n";
:-> $myName = "H.S.";
:-> echo $myName;
:-> echo $PHP_SELF;
:-> echo "Rai\n";
:-> ?>
:-> </body>
:-> </html>
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html