test.php
Copy CodeThe code is as follows:
$test = $_post[' 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 " ";
Header ("Location:index.php");
Break
Echo ' Ok2 ';
}
?>
Copy CodeThe code is as follows:
Why does this test page not pass data for the first time after loading?
echo $_post[' submit1 '];echo $_post[' submit2 ']; print empty
Then I'll be fine. Is there any way to solve this problem?
Method Two:
http://www.bkjia.com/PHPjc/320318.html www.bkjia.com true http://www.bkjia.com/PHPjc/320318.html techarticle test.php Copy Code code as follows: PHP $test = $_post[' test '); Echo '; echo $test; Echo $_post[' submit1 ']; Echo $_post[' Sub Mit2 ']; if (Isset ($_post[' submit1 ') $_post[...