$ Name = @ $ _ POST ['name?

Source: Internet
Author: User
$ Name @ $ _ POST [name? $ Name = @ $ _ POST ['name?

What does @ in it mean?


Reply to discussion (solution)

Blocking error ..

Can it be specific? I have never touched on this writing method.

If there is an error in this sentence, no error will be reported @ blocking error

@ Shield error message

If you only use $ name = $ _ POST ['name'], there may be a Notice: Undefined index: name warning message.
Add @ to prevent the warning information from being printed.

But this is not the right way!
If the program runs through the post form, the $ _ POST ['name'] will not exist.
If the program runs directly, $ _ POST ['name'] does not exist. it is meaningless to perform subsequent processing on a group of non-existent data, it may even cause adverse consequences.



Shield warning information

Shield warning information for preprocessing

$ _ POST ['name'] should be handled during registration or login,
If none of them are connected, exit directly.

The error prompt is blocked. If this code generates a runtime error, it will not be prompted.

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.