PHP's Secret
PHP Code
The value of $_post[pin] for Aaa,$_session[pin] is BBB
Not equal, Echo $_post[pin]=$_session[pin]; return 1,
Would you please help me see what the problem is?
------Solution--------------------
I think you need to check first $_post[pin] is not for AAA $_session[pin] is not for BBB
If so, Echo $_post[pin]==$_session[pin] is not going to return 1.
If everything is, then go wash your hands and come back to the new file and re-knock the code for a test. Ha ha haha
------Solution--------------------
If it is not a constant array it is best to enclose the quotation marks. The efficiency will be worse than n times, this is not a good habit
------Solution--------------------
View the entire code
If echo $_post[pin] = = $_session[pin]; Returns 1
Then $p 1== $p 2 will not be established! Because there are $p 1=$_post[pin]. " _";
So $_session[pin] will not be given true