Agni Website Building Academy (Bkjia.Com) PHP Programming Today I will introduce an article about PHP judging whether the Form form is submitted. Before A few days ago, I saw a friend asking this question on the webmaster Q&A forum, and then someone gave an example code. The code is as follows:
以下为引用的内容: $action=$HTTP_POST_VARS["Button1"]; if($action=="提交") { //执行表单操作 } else { //读取默认值 } ?> |
In fact, the above code is a bit complicated and can be simplified to:
The following is the quoted content:
以下为引用的内容: if(isset($HTTP_POST_VARS["Button1"])) { //执行表单操作 } else { //读取默认值 } ?> |
if (isset($HTTP_POST_VARS["Button1"])) { //Perform form operation } else { //Read default value } ?> |
http://www.bkjia.com/PHPjc/364214.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/364214.htmlTechArticle LieHuo.Net PHP Programming Today I will introduce an article about PHP judging whether the Form form is submitted. , I saw a friend asking this question in the webmaster Q&A forum a few days ago, and then...