Results 1 to 10 of 10
Thread: $PHP_SELF working funny
May 19, 2003, 17:06 #1
- Join Date
- Mar 2003
- 0 Post(s)
- 0 Thread(s)
$PHP_SELF working funny
I'm using this line in a script:PHP Code:
printf("<a href=""\"%s\">Add a record</a><br /><br />",$PHP_SELF);
but when I click on the resulting line, it doesn't reload the current page. PHP_SELF is defined as the domain and the directory which contains the current page, but not the current page.
i.e. it should be defined as http://localhost/lh/dhr.php, since that is the current page, but it is actually defined as
http://localhost/lh. Why is that?
Last edited by lstice; May 19, 2003 at 17:27.