(编辑:jimmy 日期: 2024/11/18 浏览:2)
本文实例讲述了php实现的美国50个州选择列表。分享给大家供大家参考。具体如下:
这里展示的是php生成的美国50个州的选择列表,自动选择当前州
<select name="state" id="state"> <option value="AL" <"AL") echo "selected";"AK" <"AK") echo "selected";"AZ" <"AZ") echo "selected";"AR" <"AR") echo "selected";"CA" <"CA") echo "selected";"CO" <"CO") echo "selected";"CT" <"CT") echo "selected";"DE" <"DE") echo "selected";"DC" <"DC") echo "selected";"FL" <"FL") echo "selected";"GA" <"GA") echo "selected";"HI" <"HI") echo "selected";"ID" <"ID") echo "selected";"IL" <"IL") echo "selected";"IN" <"IN") echo "selected";"IA" <"IA") echo "selected";"KS" <"KS") echo "selected";"KY" <"KY") echo "selected";"LA" <"LA") echo "selected";"ME" <"ME") echo "selected";"MD" <"MD") echo "selected";"MA" <"MA") echo "selected";"MI" <"MI") echo "selected";"MN" <"MN") echo "selected";"MS" <"MS") echo "selected";"MO" <"MO") echo "selected";"MT" <"MT") echo "selected";"NE" <"NE") echo "selected";"NV" <"NV") echo "selected";"NH" <"NH") echo "selected";"NJ" <"NJ") echo "selected";"NM" <"NM") echo "selected";"NY" <"NY") echo "selected";"NC" <"NC") echo "selected";"ND" <"ND") echo "selected";"OH" <"OH") echo "selected";"OK" <"OK") echo "selected";"OR" <"OR") echo "selected";"PA" <"PA") echo "selected";"RI" <"RI") echo "selected";"SC" <"SC") echo "selected";"SD" <"SD") echo "selected";"TN" <"TN") echo "selected";"TX" <"TX") echo "selected";"UT" <"UT") echo "selected";"VT" <"VT") echo "selected";"VA" <"VA") echo "selected";"WA" <"WA") echo "selected";"WV" <"WV") echo "selected";"WI" <"WI") echo "selected";"WY" <"WY") echo "selected";?Wyoming</option> </select>
希望本文所述对大家的php程序设计有所帮助。