为什么表单提交 returns 来自 select 选项的文本
why form submit returns the text from an select option
为什么在我提交 select post
时 return 正在编辑文本
我有这个代码
<select name="id_comercial" id="id_comercial" class="form-control">
<option selected="selected">Select Comercial</option>
<option value="1">Comercials</option>
</select>
当我提交第一个选项时
在 PHP return 秒 "Select Comercial"
在
echo $_POST['id_comercial']
returning 值 = Select 商业
我怎样才能让我的 html 变成 return NULL 或 FALSE 或除文本
以外的其他东西
试试这个:
<option value="NULL" selected="selected">Select Comercial</option>
:)
为什么在我提交 select post
时 return 正在编辑文本我有这个代码
<select name="id_comercial" id="id_comercial" class="form-control">
<option selected="selected">Select Comercial</option>
<option value="1">Comercials</option>
</select>
当我提交第一个选项时 在 PHP return 秒 "Select Comercial" 在
echo $_POST['id_comercial']
returning 值 = Select 商业
我怎样才能让我的 html 变成 return NULL 或 FALSE 或除文本
以外的其他东西试试这个:
<option value="NULL" selected="selected">Select Comercial</option>
:)