我有一个网站,其中有一个由 php 创建的表单:
echo "<form width='300px' action='results.php' method='post'>";
echo "<fieldset>";
echo "<legend>Find Resources!</legend>";
echo "<label for='euoff'>Quick List of Services</label><br />";
echo "<select name='offering' id='euoff'>";
echo "<option value=''>--Select One--</option>";
foreach ($values as $eu){
echo "<option class='$reg' value='$eu[0]'>$eu[1]</option>";
}
echo "</select>";
echo "<input type='submit' class='btn' name='submit' value='GO' />";
echo "</fieldset>";
echo "<fieldset>";
echo "<legend>Quick Resource Search</legend>";
echo "<label for='soff'>Enter your search term below.</label><br />";
echo "<input class='align-left' name='soffering' type='text' size='50' maxlength='25' id='soff' />";
echo "<input type='submit' class='btn' name='ssubmit' value='GO' />";
echo "</fieldset>";
echo "</form>";
echo "</div>";
当用户从选择列表中选择一个项目时,他们必须用鼠标单击 GO 按钮,不知道为什么......有什么建议吗?此外,如果用户在第二个输入中输入数据 - “soffering” - 他们必须单击 GO,因为键盘上的输入不会触发第二个提交 (ssubmit) 按钮。
任何人都可以回答为什么?谢谢!