php实现的美国50个州选择列表实例
php实现的美国50个州选择列表实例
发布时间:2016-12-29 来源:查字典编辑
摘要:本文实例讲述了php实现的美国50个州选择列表。分享给大家供大家参考。具体如下:这里展示的是php生成的美国50个州的选择列表,自动选择当前...

本文实例讲述了php实现的美国50个州选择列表。分享给大家供大家参考。具体如下:

这里展示的是php生成的美国50个州的选择列表,自动选择当前州

<select name="state" id="state"> <option value="AL" <"AL") echo "selected";?>>Alabama</option> <option value="AK" <"AK") echo "selected";?>>Alaska</option> <option value="AZ" <"AZ") echo "selected";?>>Arizona</option> <option value="AR" <"AR") echo "selected";?>>Arkansas</option> <option value="CA" <"CA") echo "selected";?>>California</option> <option value="CO" <"CO") echo "selected";?>>Colorado</option> <option value="CT" <"CT") echo "selected";?>>Connecticut</option> <option value="DE" <"DE") echo "selected";?>>Delaware</option> <option value="DC" <"DC") echo "selected";?>>District of Columbia</option> <option value="FL" <"FL") echo "selected";?>>Florida</option> <option value="GA" <"GA") echo "selected";?>>Georgia</option> <option value="HI" <"HI") echo "selected";?>>Hawaii</option> <option value="ID" <"ID") echo "selected";?>>Idaho</option> <option value="IL" <"IL") echo "selected";?>>Illinois</option> <option value="IN" <"IN") echo "selected";?>>Indiana</option> <option value="IA" <"IA") echo "selected";?>>Iowa</option> <option value="KS" <"KS") echo "selected";?>>Kansas</option> <option value="KY" <"KY") echo "selected";?>>Kentucky</option> <option value="LA" <"LA") echo "selected";?>>Louisiana</option> <option value="ME" <"ME") echo "selected";?>>Maine</option> <option value="MD" <"MD") echo "selected";?>>Maryland</option> <option value="MA" <"MA") echo "selected";?>>Massachusetts</option> <option value="MI" <"MI") echo "selected";?>>Michigan</option> <option value="MN" <"MN") echo "selected";?>>Minnesota</option> <option value="MS" <"MS") echo "selected";?>>Mississippi</option> <option value="MO" <"MO") echo "selected";?>>Missouri</option> <option value="MT" <"MT") echo "selected";?>>Montana</option> <option value="NE" <"NE") echo "selected";?>>Nebraska</option> <option value="NV" <"NV") echo "selected";?>>Nevada</option> <option value="NH" <"NH") echo "selected";?>>New Hampshire</option> <option value="NJ" <"NJ") echo "selected";?>>New Jersey</option> <option value="NM" <"NM") echo "selected";?>>New Mexico</option> <option value="NY" <"NY") echo "selected";?>>New York</option> <option value="NC" <"NC") echo "selected";?>>North Carolina</option> <option value="ND" <"ND") echo "selected";?>>North Dakota</option> <option value="OH" <"OH") echo "selected";?>>Ohio</option> <option value="OK" <"OK") echo "selected";?>>Oklahoma</option> <option value="OR" <"OR") echo "selected";?>>Oregon</option> <option value="PA" <"PA") echo "selected";?>>Pennsylvania</option> <option value="RI" <"RI") echo "selected";?>>Rhode Island</option> <option value="SC" <"SC") echo "selected";?>>South Carolina</option> <option value="SD" <"SD") echo "selected";?>>South Dakota</option> <option value="TN" <"TN") echo "selected";?>>Tennessee</option> <option value="TX" <"TX") echo "selected";?>>Texas</option> <option value="UT" <"UT") echo "selected";?>>Utah</option> <option value="VT" <"VT") echo "selected";?>>Vermont</option> <option value="VA" <"VA") echo "selected";?>>Virginia</option> <option value="WA" <"WA") echo "selected";?>>Washington</option> <option value="WV" <"WV") echo "selected";?>>West Virginia</option> <option value="WI" <"WI") echo "selected";?>>Wisconsin</option> <option value="WY" <"WY") echo "selected";?>>Wyoming</option> </select>

希望本文所述对大家的php程序设计有所帮助。

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新php教程学习
热门php教程学习
编程开发子分类