|
|
apache和php都安装好了,可以打开php网页(可以看到phpinfo()的结果)
但是html与php结合的时候,php却不能得到预期结果
exam.html:
<html>
<body>
<form method=post action="exam.php">
input height:<input type=text name=height size=15>
<input type=submit value="compute">
</form>
</body>
</html>
exam.php:
<html>
<body>
<?php
echo "$height";
?>
</body>
</html>
仅仅是个显示一个变量的值,却什么也不显示
是不是变量没有传递过去呢? |
|