PHP 提交表单

 

//在1.PHP文件中:

<!DOCTYPE html>
<html>
<body>
<form action="2.php" method="post">
name: <input type="text" name="name"><br>
email:<input type="text" name="email"><br>
<input type= "submit">
</form>
</body>
</html>

 

//2.PHP

<html>
<body>
your name is: <?php echo $_POST["name"];?><br>
your adress is :<?php echo $_POST["email"];?><br>
</body>
</html>

posted on 2017-02-24 18:19  jiangger  阅读(158)  评论(0编辑  收藏  举报