<html><head>
<title>testing....</title></head>
<body>testing...........
<form>
<input type = text NAME = "username"><br><br>
<input Type = submit VALUE = submit data>
</form>
<br>
<?php
echo($username);
?>
</body>
</html>
echo($username);为什么显示不出结果啊????
在我的机器上就不行,
你点提交后不显示嘛?PHP正常解析不呀?
你在程序前面加一个<?php echo "1" ?>看看能不能看到1,要不然程序根本没有解析,怎么看得到
把echo ($username)改为echo $username试试
php版本問題
你這個版本沒有自動
track_vars =on
是不是把<form>改为<form action=$PHP_SELF method=post>,
你的代码在我这执行是可以的,所以我只能猜是这个原因了。