富贵资源网 Design By www.hznty.com
本文实例讲述了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程序设计有所帮助。
富贵资源网 Design By www.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com
暂无评论...