0

不允许以下选择列表工作的错误是什么?

创建电子邮件注册表单(Constant Contact)。使用 Constant Contact 表单生成器,我尝试将“邮件列表选项”从复选框更改为下拉菜单,但这样做会导致联系人信息被添加到所有邮件列表中,而不是被选中的单个列表.

选择列表代码:(不起作用)

<select>
<option name="Customer Type" ID="">Please select...</option>
<option  value="Architect/Designer" name="Lists[]" id="list_Architect/Designer" />Architect/Designer</option>
<option  value="AV/Media/Broadcast" name="Lists[]" id="list_AV/Media/Broadcast" />AV/Media/Broadcast</option>
<option  value="Command/Control" name="Lists[]" id="list_Command/Control" />Command/Control</option>
</select>

复选框代码:(工作)

<input type="checkbox"  checked="checked"  value="Architect/Designer" name="Lists[]" id="list_Architect/Designer" />
<label for="list_Architect/Designer">Architect/Designer</label><br />

<input type="checkbox"  value="AV/Media/Broadcast" name="Lists[]" id="list_AV/Media/Broadcast" />
<label for="list_AV/Media/Broadcast">AV/Media/Broadcast</label><br />

<input type="checkbox"  value="Command/Control" name="Lists[]" id="list_Command/Control" />
<label for="list_Command/Control">Command/Control</label><br />
4

1 回答 1

0

你需要选择多个

<select multiple='multiple'>

 <option name="Customer Type" ID="">Please select...</option>
 <option  value="Architect/Designer" name="Lists[]" id="list_Architect/Designer" />Architect/Designer</option>
 <option  value="AV/Media/Broadcast" name="Lists[]" id="list_AV/Media/Broadcast" />AV/Media/Broadcast</option>
 <option  value="Command/Control" name="Lists[]" id="list_Command/Control" />Command/Control</option>
 </select>
于 2014-02-06T03:50:42.927 回答