When I have a form and <form action ="<?php echo $PHP_SELF?">. What exactly it does ?
Thanks
The manual 'PHP_SELF' The filename of the currently executing script, relative to the document root. For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar would be /test.php/foo.bar. [/quote]
The manual 'PHP_SELF'
The filename of the currently executing script, relative to the document root. For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar would be /test.php/foo.bar. [/quote]
or to be precise it will say something like: "parse error on line XYZ" 😃 right:
<form action ="<?php echo $_SERVER['PHP_SELF'] ?>">
...as weedpacket pointed out its better to use $_SERVER['PHP_SELF'] instead of $PHP_SELF.