Sending confidential form info to a db and to the submitter
I have a volunteer application form for an airshow, it can be seen here www.hollisterairshow.com/volunteerapp.php and when the user clicks submit their info is added to a MySQL db and the user is sent to a "thank you" page, this is working fine and may be sufficient "as is". Try it if you like !!
I'd like to try and improve this a bit in two ways:
- Show the information the volunteer submitted on the "thank you" page and/or
- Give the user the option of e-mailing a copy of their info to themselves ( it includes days they expect to be available, preferred activity etc)
The information the user submits also includes personal info such as e-mail address, phone number and street address and so should not be accessible by anyone other than the submitter and the airshow administrator or me. I have a password protected secure area for the administrator to access all the info and this is working fine. The primary key for the volunteer table is a "volunteernumber" which is a numeric field that is incremented by 1 automatically when the record is written to the table.
So, my concerns are:
- How do I pass the volunteernumber back to the "thank you" page in such a way that it is not visible to the user ( if I used a URL parameter the user could see they were, say, volunteer number 29 and it wouldn't take a whole lot of skill to change it to another volunteer number and see someone else's info)
- I think I read somewhere that sending an e-mail can open me up to malicious attacks - not very likely but still possible
I'd really appreciate a pointer in the right direction. I'm using DW CS4.
Thanks,
Tony


