Validating data on a pledge form
March 13, 2008 4:53 AM
Subscribe
Javascriptfilter: Building an online donation form, and need some hand-holding.
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.
Can you help with this? I'm guessing Javascript/Ajax is the answer, but my skills in the former are weak and in the latter are nil.
posted by jbickers to computers & internet (7 comments total)
Whatever is powering the contribution page -- PHP, ASP, Perl, etc. -- that's what you want to use to make these changes.
posted by Jairus at 5:09 AM on March 13