Posted by Floortje on 06/06/07 17:31
vinnie wrote:
> can someone explain me with an easy example what the function for?
>
> I've read on the php.net, but didn;t really catch the point. I'm a
> newbie.
>
> Thanks
Personally i never use $_SERVER['PHP_SELF'] (mind the spellling). I
really cant image when I would ever use it but I guess it could be handy
for stuff like this:
// refresh page
header("Location: ".$_SERVER['PHP_SELF']);
//forms
echo '<form action="'.$_SERVER['PHP_SELF'].'"'>;
I presonally prefer to have a navigation class handle the current
location :-)
Arjen
--
www.arjenkarel.nl
Navigation:
[Reply to this message]
|