
php表单提交POST提交不上
源代码如下<!DOCTYPEhtml><html><body><formaction="excal.php"method="post">Name:<label><inpu...
源代码如下
<!DOCTYPE html>
<html>
<body>
<form action="excal.php" method="post">
Name:<label><input type="text" name="name"></label><br>
E-mail:<label><input type="text" name="email"></label><br>
<input type="submit">
</form>
</body>
</html>
PHP里代码
Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>
我是在mac电脑上用PHPstorm编写的然后不好用的 展开
<!DOCTYPE html>
<html>
<body>
<form action="excal.php" method="post">
Name:<label><input type="text" name="name"></label><br>
E-mail:<label><input type="text" name="email"></label><br>
<input type="submit">
</form>
</body>
</html>
PHP里代码
Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>
我是在mac电脑上用PHPstorm编写的然后不好用的 展开
2个回答
展开全部
追答
connot modify header information- header 提示头部加这个试下:
header("content-type:text/html;charset=utf-8");
undefined index:email 的提示加判断:
if(isset($_GET['email'])){
echo $_GET['email'];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询