My idea of this program is
When the program is in normal access, add the get parameter so that it executes the result after get
such as Xxx.php?login
This type
The code is as follows
echo "Index"; if ($_get[' login ') {echo "Login";}
There seems to be no problem, but login is still null even if it is written into the URL
So, if this is still not done
In other words, I will change if to if ($_get[' login ') = "x")
URL Access? login it was executed.
I'm a little confused. If you do not add an operator, if just to determine whether it is empty
Add the assignment value. (Well, here is the assignment)
All right, but I think, xxx.php?login.
Return the specified content, what should I do?
Reply to discussion (solution)
if (isset ($_get[' login ')) { echo "login";}
if ($_get) {
echo Key ($_get);
}
echo "Index"; if (isset ($_get[' login ')) { echo "login";}
if ($_get[' login '] = "x") This must be successful, because = is an assignment operation, this sentence is to determine whether the assignment is successful, the judgment is equal to should be used = =.
if ($_get[' login '] = "x") This must be successful, because = is an assignment operation, this sentence is to determine whether the assignment is successful, the judgment is equal to should be used = =.