//在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>
时间: 2024-11-01 01:23:56