diff --git a/public/actions/submitmembership.php b/public/actions/submitmembership.php index 24ffe1f..c37e5ce 100644 --- a/public/actions/submitmembership.php +++ b/public/actions/submitmembership.php @@ -57,7 +57,7 @@ $database->action(function($database) { errorBack("Enter a city."); } if (!preg_match("/^[A-Z]{2}$/", $state)) { - errorBack("Enter a valid two-character state (MT, WY, ID, etc)."); + errorBack("Select a state."); } if (!preg_match("/^[0-9]{5}(-?[0-9]{4})?$/", $zip)) { errorBack("Enter a valid five or nine digit US ZIP code."); diff --git a/public/parts/signup.php b/public/parts/signup.php index 4cda1ce..5abebdb 100644 --- a/public/parts/signup.php +++ b/public/parts/signup.php @@ -76,8 +76,61 @@ "label" => "State", "icon" => "fas fa-flag", "name" => "state", - "maxlength" => 2, - "value" => "MT", + "type" => "select", + "options" => [ + 'MT' => 'Montana', + 'AL' => 'Alabama', + 'AK' => 'Alaska', + 'AZ' => 'Arizona', + 'AR' => 'Arkansas', + 'CA' => 'California', + 'CO' => 'Colorado', + 'CT' => 'Connecticut', + 'DE' => 'Delaware', + 'DC' => 'District of Columbia', + 'FL' => 'Florida', + 'GA' => 'Georgia', + 'HI' => 'Hawaii', + 'ID' => 'Idaho', + 'IL' => 'Illinois', + 'IN' => 'Indiana', + 'IA' => 'Iowa', + 'KS' => 'Kansas', + 'KY' => 'Kentucky', + 'LA' => 'Louisiana', + 'ME' => 'Maine', + 'MD' => 'Maryland', + 'MA' => 'Massachusetts', + 'MI' => 'Michigan', + 'MN' => 'Minnesota', + 'MS' => 'Mississippi', + 'MO' => 'Missouri', + 'MT' => 'Montana', + 'NE' => 'Nebraska', + 'NV' => 'Nevada', + 'NH' => 'New Hampshire', + 'NJ' => 'New Jersey', + 'NM' => 'New Mexico', + 'NY' => 'New York', + 'NC' => 'North Carolina', + 'ND' => 'North Dakota', + 'OH' => 'Ohio', + 'OK' => 'Oklahoma', + 'OR' => 'Oregon', + 'PA' => 'Pennsylvania', + 'RI' => 'Rhode Island', + 'SC' => 'South Carolina', + 'SD' => 'South Dakota', + 'TN' => 'Tennessee', + 'TX' => 'Texas', + 'UT' => 'Utah', + 'VT' => 'Vermont', + 'VA' => 'Virginia', + 'WA' => 'Washington', + 'WV' => 'West Virginia', + 'WI' => 'Wisconsin', + 'WY' => 'Wyoming' + ], "width" => 2 ], [ @@ -107,8 +160,8 @@ "type" => "select", "options" => [ "1" => "Email ($25)", - "2" => "Snail Mail ($35)", - "3" => "Email and Snail Mail ($35)" + "2" => "Paper ($35)", + "3" => "Email and Paper ($35)" ] ] ]; @@ -161,7 +214,8 @@
- These membership fees cover costs of the following: + The membership fees (determined by your newsletter + preference) cover costs of the following: phone; website; postage; distribution of newsletters and directories; publication of materials; library; and other HACHE related activities. Dues are reduced as of March 1st. @@ -187,9 +241,7 @@