[PHP] $PHP_SELF not working -please help

2001-12-19 Thread Caleb Carvalho
Hi there, I have created a script that is suppose to get some input from user and display back, and i have the following method FORM METHOD=POST ACTION=? echo $PHP_SELF ? so i have a script that if login fails it will ask the user to register, if(!$username) { session_unregister(userid);

Re: [PHP] $PHP_SELF not working -please help

2001-12-19 Thread Steve Edberg
Is the code below in a function? If so, you'll have to globalize $PHP_SELF: function your_function() { global $PHP_SELF; ... echo $PHP_SELF; .. } alternatively, you could do function your_function() {