Hi PHPers,
Just a quick thing that is bugging me. In some of my older textbooks a form is
returned to the same page by using
echo $PHP_SELF no just $PHP_SELF
is this just used in older versions of php?? Does the it make a difference what
one is used?
Ta,
Ross
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
:
? echo $_SERVER['PHP_SELF'] ? or ?=$_SERVER['PHP_SELF']?
Either would work.
Actually, to be truly portable, it should be:
?php echo $_SERVER['PHP_SELF']; ?
Not all hosts have short tags enabled in their PHP installations.
Additionally, you have to be careful with PHP_SELF. On web servers
3 matches
Mail list logo