<form action="" method="POST">
<input name="name" type="text">
<input type="submit" value="提交">
</form> <? echo "hello".$name;?>
这样试试
<input name="name" type="text">
<input type="submit" value="提交">
</form> <? echo "hello".$name;?>
这样试试
用这种方式打开浏览器看!!!
你可以从你的配置找问题,建议你用phpinfo()
phpinfo.php
<?php
phpinfo();
?>
$name = $_GET['name'];
echo "hello".$name;?>
?>