Results 1 to 2 of 2
Jun 1, 2002, 13:19 #1
I am using this line of code to check if newlogin has been set:
What happens when I reload the page and I want newlogin NOT to be set?
How do I do that?
It keeps going into the if...
Jun 1, 2002, 16:50 #2
What I did was: 1:I wrote this script:
<form action="<?=$PHP_SELF?>" method="post">
<p>Type your Login herebr />
<input type="text" name="login1">
<input type="submit" name="submitlogin" value="SUBMIT" /></p>
2:I made register_globals off and replaced $newlogin
with $HTTP_GET_VARS['newlogin'] and added
after the if statement.
The thing is that when the page is reloaded the URL is $PHP_SELF that is equal to http://localhost/test.php?newlogin=1. How do I get rid or the newlogin=1???