Content of this section:
php pageSimple example of passing value
1, index.html
Copy CodeCode example:
2, post.php
Copy codeCode example:
if(empty($_POST['id'])) { echo "账户不能为空,5秒后自动返回登录界面"; header("refresh:5;URL='index.htm'"); } else if(empty($_POST['guess'])) { echo "文本不能为空,5秒后自动返回登录页面"; header("refresh:5;URL='index.htm'"); } else { $id=$_POST['id']; $guess=$_POST['guess']; echo"Hello".$id."你的留言是".$guess."
"; } ?>
For more tutorials related to php newbies, please refer to the more content introduced in the php introductory tutorial.
The above is the detailed content of Analysis of skills in page value transfer for getting started with PHP. For more information, please follow other related articles on the PHP Chinese website!