• 欢迎访问开心洋葱网站,在线教程,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入开心洋葱 QQ群
  • 为方便开心洋葱网用户,开心洋葱官网已经开启复制功能!
  • 欢迎访问开心洋葱网站,手机也能访问哦~欢迎加入开心洋葱多维思维学习平台 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏开心洋葱吧~~~~~~~~~~~~~!
  • 由于近期流量激增,小站的ECS没能经的起亲们的访问,本站依然没有盈利,如果各位看如果觉着文字不错,还请看官给小站打个赏~~~~~~~~~~~~~!

php生成的美国50个州的选择列表

PHP 水墨上仙 2178次浏览 0个评论

php生成的美国50个州的选择列表,自动选择当前州

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


开心洋葱 , 版权所有丨如未注明 , 均为原创丨未经授权请勿修改 , 转载请注明php生成的美国50个州的选择列表
喜欢 (0)

您必须 登录 才能发表评论!

加载中……