Return to Snippet

Revision: 45394
at May 21, 2011 02:18 by The14thGOD


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

Revision: 45393
at May 21, 2011 02:17 by The14thGOD


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

Revision: 45392
at April 29, 2011 04:47 by The14thGOD


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

Initial URL

                                

Initial Description

                                

Initial Title
Select List - State - PHP

Initial Tags

                                

Initial Language
PHP