|
Posted by Richard Davey on 07/14/05 13:37
Hello Ross,
Thursday, July 14, 2005, 11:11:25 AM, you wrote:
R> Just a quick thing that is bugging me. In some of my older
R> textbooks a form is returned to the same page by using
R> echo $PHP_SELF no just $PHP_SELF
R> is this just used in older versions of php?? Does the it make a
R> difference what one is used?
PHP_SELF is part of the $_SERVER super global, you should really
access it like this:
$_SERVER['PHP_SELF']
To answer your question though, it's just a variable - if you want to
output it into your form action then you can do either:
<? echo $_SERVER['PHP_SELF'] ?> or <?=$_SERVER['PHP_SELF']?>
Either would work.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I do not fear computers. I fear the lack of them." - Isaac Asimov
Navigation:
[Reply to this message]
|