您好,我有以下表格来收集输入的数据,然后我将其输出。当我使用 POST 时它工作得很好,但是当我像老师说的那样使用 REQUEST 时, echo $word 会返回空。有什么想法吗?请?
<Form name ="form1" Method ="REQUEST" Action ="">
<Input Type = "text" Value ="<?php echo $word ?>" Name ="word">
<Input Type = "Submit" Name = "Submit1" Value = "Submit">
<?php
if (isset($_POST['Submit1'])) {
$word = $_POST['word'];
$book = $_POST['book'];
}
?>