$ Name @ $ _ POST [& # x27; name & # x27? $ Name @ $ _ POST [name? [Email & #160; protected]? Share To: $ name = @ $ _ POST ['name?
$ Name =
@$ _ POST ['name?
[Email protected]?
Share:
------ Solution --------------------
Blocking error ..
------ Solution --------------------
If there is an error in this sentence, no error will be reported @ blocking error
------ Solution --------------------
@ Shield error message
If only $ name = $ _ POST ['name'] may have one
Notice: Undefined index: name warning information
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.
------ Solution --------------------
Shield warning information
------ Solution --------------------
Shield warning information for preprocessing
------ Solution --------------------
$ _ POST ['name'] should be handled during registration or login,
If none of them are connected, exit directly.
------ Solution --------------------
The error prompt is blocked. If this code generates a runtime error, it will not be prompted.