Validating data on a pledge form
March 13, 2008 4:53 AM Subscribe
posted by jbickers to Computers & Internet (7 answers total)
Our non-profit is gearing up for membership drive, and we want to add "thank you gifts" (a la PBS) to our contribution page. The contribution page already exists and works; people type in the amount they want to give into a text field, with suggested giving levels out to the side.
But we want to add a list of "premiums" - DVDs, books, etc - that are only available at certain giving levels. So if you give $250, you get your choice of the DVD, book #1 or book #2; if you give $120, you can only choose between the two books.
We want all of the items to be displayed (so that people can see what they'd get if they upped their gift), but need some kind of validation logic that sends them back to the form with an error message if they choose a gift that is above their giving level.