Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

« Newer Snippets
Older Snippets »
7 total  XML / RSS feed 

PHP State-Array Generator

Simple array for HTML mockups.

function state_selection() {
        echo '';
}
state_selection();

US States Pop-up

Simply a pop-up form element of all 50 US States. Save you creating your own.

            <select name="state">
              <option value="" selected="selected">Select a state...option>
              /option>
              <option value="AK">Alaskaoption>
              /option>
              <option value="AR">Arkansasoption>
              /option>
              <option value="CO">Coloradooption>
              /option>
              <option value="DC">District of Columbiaoption>
              /option>
              <option value="FL">Floridaoption>
              /option>
              <option value="HI">Hawaiioption>
              /option>
              <option value="IL">Illinoisoption>
              /option>
              <option value="IA">Iowaoption>
              /option>
              <option value="KY">Kentuckyoption>
              /option>
              <option value="ME">Maineoption>
              /option>
              <option value="MA">Massachusettsoption>
              /option>
              <option value="MN">Minnesotaoption>
              /option>
              <option value="MO">Missourioption>
              /option>
              <option value="NE">Nebraskaoption>
              /option>
              <option value="NH">New Hampshireoption>
              /option>
              <option value="NM">New Mexicooption>
              /option>
              <option value="NC">North Carolinaoption>
              /option>
              <option value="OH">Ohiooption>
              /option>
              <option value="OR">Oregonoption>
              /option>
              <option value="RI">Rhode Islandoption>
              /option>
              <option value="SD">South Dakotaoption>
              /option>
              <option value="TX">Texasoption>
              /option>
              <option value="VT">Vermontoption>
              /option>
              <option value="WA">Washingtonoption>
              /option>
              <option value="WI">Wisconsinoption>
              /option>
            select>

_author_form.rhtml

// description of your code here
_author_form.rhtml
partial that handles the author name portion of a message entry form.

<%= error_messages_for 'message' %>