首頁  >  文章  >  後端開發  >  submit php 多個submit提交表單 處理方法

submit php 多個submit提交表單 處理方法

WBOY
WBOY原創
2016-07-29 08:40:192339瀏覽

test.php

複製程式碼 程式碼如下:


$test = $_POST[ test_test ' ];
echo '12 ';
echo $test;
echo $_POST[ 'submit1 '];
echo $_POST[ 'submit2 '];
if (isset($_POST [ 'submit1 ']) && $_POST[ 'submit1 '] == 'submit1 ')
{
echo 'ok1 ';
}
if (isset($_POST[ 'submit2 '] ) && $_POST[ 'submit2 '] == 'submit2 ')
{
// echo "




陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn