我使用的是Wampserver64bit win10环境下;
配置eclipse for php +Wampserver;学习过程中,建立一个form.html和welcome.php文件,点击html中的提交按钮 输入姓名和年龄,链接到php中,姓名跟年龄无法显示post过来的值。见下图片!请问大神是怎么回事?是我wampserver的环境配置错了吗?还是怎么回事?
form.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>菜鸟教程</title>
</head>
<body>
<form action="welcome.php" method="post">
名字: <input type="text" name="fname">
年龄: <input type="text" name="age">
<input type="submit" value="提交">
</form>
</body>
</html>
welcome.php
欢迎<?php echo $_POST["fname"]; ?>!<br>
你的年龄是 <?php echo $_POST["age"]; ?> 岁。