本文实例讲述了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程序设计有所帮助。
标签:
php,美国50个州,选择,列表
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“php实现的美国50个州选择列表实例”评论...