Undefined, i know DM but not well in PHP

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Karasu Kami
-


Joined: 22 Sep 2003
Posts: 712
Location: Colorado

PostPosted: Wed Oct 15, 2003 1:58 am    Post subject: Undefined, i know DM but not well in PHP Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
JohnC
-


Joined: 09 Oct 2003
Posts: 34

PostPosted: Wed Oct 15, 2003 6:59 pm    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Oct 17, 2003 3:56 pm    Post subject: Re: Undefined, i know DM but not well in PHP Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group