View previous topic :: View next topic |
Author |
Message |
Karasu Kami -
Joined: 22 Sep 2003 Posts: 712 Location: Colorado
|
Posted: Wed Oct 15, 2003 1:58 am Post subject: Undefined, i know DM but not well in PHP |
|
|
Notice: Undefined variable: PHP_SELF in C:\Program Files\Abyss Web Server\htdocs\QM\stats\php1B1.tmp on line 522
i dont know exactly how to define it in php, but i do in DM.
heres a snippet of the lines.
Quote: | if ( $enabled == "yes" )
{
echo "<form method ='get' action ='$PHP_SELF'>
<center>
<table width='500' border='0'> |
[EDIT]im using http://www.php-web-statistik.de "PHP Web Statistik" and its not getting the statistics of the site...[/EDIT] _________________ Thank you all. Aprelium most importantly.
*Some may not be complete*
http://paeon-hosting.com
http://quartermoon.info
http://loc.paeon-hosting.com
http://genjipoetry.paeon-hosting.com |
|
Back to top |
|
 |
JohnC -
Joined: 09 Oct 2003 Posts: 34
|
Posted: Wed Oct 15, 2003 6:59 pm Post subject: |
|
|
I wouldn't have a clue about fixing the PHP - but I assume that PHP_SELF means to post back to the SAME script ?
If so, just remove the whole action= part from the FORM tag
By default, a FORM will post back to the same URL it's served from - you only need the action= if you want to send the form post to a DIFFERENT script / url
JC |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Oct 17, 2003 3:56 pm Post subject: Re: Undefined, i know DM but not well in PHP |
|
|
Use $_SERVER['PHP_SELF'] instead of $PHP_SELF. Or set register_globals to on in the php.ini . For more information, search for "Undefined variable" in this forum. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|