codeforamerica / brigade-alpha

The old Code for America Brigade website. The new site at https://github.com/codeforamerica/brigade
BSD 3-Clause "New" or "Revised" License
16 stars 18 forks source link

Landing page form needs validation #79

Closed davidrleonard closed 9 years ago

davidrleonard commented 9 years ago

There's currently no validation/feedback on the landing page signup form for the user. No matter what is entered (or if nothing is entered), the form goes to a success page. It would be helpful if the form validated the existence of a name, email address and city and minimum, and checked that the email address was a valid format.

(Perhaps for another issue ... it would be nice if the City input was a Javascript typeahead search box that suggested cities that already have a brigade.)

ondrae commented 9 years ago

Yeah, I just noticed this too. I'm on it. Thanks.

ondrae commented 9 years ago

I started writing all this crazy PHP validation stuff, then stopped and just added required to the form elements.