Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 PHP 新手。我想通过邮寄将数据从一页发送到另一页。
if(isset($_REQUEST['submit'])) { header("location:nextpage.php"); //here i want to send data coming from my text box's by post function }
您应该从正确的页面开始。
<form action="your-processing-script.php" method="post">
请记住,该操作是相对的,因此根据您的文件结构,您可能需要在文件 url 前加上斜杠以防止混淆。
/your-processing-script.php