PHP Unsolved Solution

Source: Internet
Author: User
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
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.