test.php
复制代码 代码如下:
<?php
$test = $_POST[ ‘test ‘];
echo ’12 ‘;
echo $test;
ech¥本文来%源[email protected]搞@^&代*@码)网5搞gaodaima代码o $_POST[ ‘submit1 ‘];
echo $_POST[ ‘submit2 ‘];
if (isset($_POST[ ‘submit1 ‘]) && $_POST[ ‘submit1 ‘] == ‘submit1 ‘)
{
echo ‘ok1 ‘;
}
if (isset($_POST[ ‘submit2 ‘]) && $_POST[ ‘submit2 ‘] == ‘submit2 ‘)
{
// echo ” <meta http-equiv=refresh content= ‘0; url=http://localhost:8000/php/index.php ‘> “;
// header( “Location:index.php “);
// break;
echo ‘ok2 ‘;
}
?>
复制代码 代码如下:
<body>
为什么 这个测试页面 载入后第一次不传数据?
echo $_POST[ ‘submit1 ‘];echo $_POST[ ‘submit2 ‘];都打印空
之后就好了。这个是什么原因 有没有办法解决?
方法二:
<script language= “JavaScript “><!—ecms
function check(){
frm.action = “checkname.php ”
}
function mysubmit() {
frm.action = “zhuce.php ”
}
// –></script>