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);
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() {
2 matches
Mail list logo