What do you mean by submit?
The Submit object represents one of the submit buttons in the HTML form (the Submit button).
This article is to explain that PHP receives the submission form when judging if ($_post[submit]) and if (Isset ($_post[submit)), the difference between interested students reference.
if (Isset ($_post[' submit '))) does it mean to determine whether the $_post[' submit ' variable is configured? If there is a variable in the execution of other code
It should be used.
if (Isset ($_post[' submit '))) {}
The difference between if ($_post[submit]) and if (Isset ($_post[submit)) when submitting a form
The first method will appear a warning, the second relatively more rigorous.
There is also the key name of the post is best added single quotation marks, so the efficiency is slightly higher (about 3-4 times).
Well, that means, if you set this variable, it returns TRUE.
PHP if (isset ($_post[' Submit ')) means:
Isset--Detect if the variable is set
Determine if the post data has been submitted.
The code is as follows:
if (Isset ($_post["Submit") {echo "was submitted";} else {echo "Submit is no come~";}
The above is the PHP submission form when judging if$_post[submit] and Ifisset$_post[submit] The difference, including the content of what meaning to submit, I hope to topic.alibabacloud.com friends have some help.