[英]How to get the right PHP output on HTML form select tag
这是我使用的整个PHP代码,直到
绒毛:
一切正常:<select id="flight">
<option value="Wahl" selected="selected">*Wählen Sie einen Flug*</option>
<option value="Funflug">Funflug</option>
<option value="Thermikflug">Thermikflug</option>
</select>
和我的HTML代码(仅限选择标记):
<select id="flight"> <option value="Wahl" selected="selected">*Wählen Sie einen Flug*</option> <option value="Funflug">Funflug</option> <option value="Thermikflug">Thermikflug</option> </select>
这是我对此的最后一次尝试。 我尝试了其他方法,但并没有使我选择我的选项之一。
ID不会发布,只有名称可以尝试
<select name="flight">
<option value="Wahl" selected="selected">*Wählen Sie einen Flug*</option>
<option value="Funflug">Funflug</option>
<option value="Thermikflug">Thermikflug</option>
</select>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.