<?php
$name = $_POST[name];
echo $name;
?>
<html>
<body>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input type="text" name="name" />
<input type="submit" value="提交" />
</form>
</body>
</html>
我把这个提交的name里面的东西提交给本页,应该能打印出来我输入的东西啊,怎么现在报错?
$name = $_POST[‘name’];
这句加了引号还是不行啊
Notice: Undefined index: name in D:\Program Files\EasyPHP 3.0\www\aaa.php on line 2