2013-02-17 45 views
0

我有这个,但由于某些原因seller_email输入不提交。让我知道什么是错的,我该如何解决它。当然没有JavaScript。如何提交没有javascript的选择选项?

<form name="input" action="mail.php" method="post"> 
name: <input type="text" name="name"><br> 
<select name="seller_email" form="input"> 
<option value='[email protected]'>[email protected]</option> 
</select> 
Address: <input type="text" name="bank_address"><br> 

<input type="submit" id="submit" value="Submit"> 
</form> 
+1

当你说它不工作时你会得到什么错误? – 2013-02-17 16:25:15

+0

选项“seller_email”未提交 – 2013-02-17 16:37:17

回答

0

您的选择框中不需要form="input"。我也远离命名表单的输入,这可能是一个保留字。

<form name="myForm" action="mail.php" method="post"> 
name: <input type="text" name="name"><br> 
<select name="seller_email"> 
    <option value='[email protected]'>[email protected]</option> 
</select> 
Address: <input type="text" name="bank_address"><br> 
<input type="submit" id="submit" value="Submit"> 
</form> 
+0

仍然不起作用。更名为myForm – 2013-02-17 16:35:23

+0

您的'select'选项 – 2013-02-17 16:39:04

+0

中不需要'form =“input”'感谢您的耐心......我不知道我在哪里看到过(选择表格) – 2013-02-17 16:51:28