IEEE placed an ad in Fortune magazine and wanted a way to track how successful the advertisement was. D2 Creative’s design team put together the layout and I built the site. The form uses JavaScript to validate the form. After it’s validated, the data from the form is posted using AJAX to a script that goes through an intense process.
First, it checks to make sure the data passed is clean and then inserts it into the database. After that, depending on which check boxes were selected, an e-mail is sent to the user thanking them for participating. The administration team gets an email sent to them with the information that was filled out as well as an attachment of a .csv file with all the latest data.
On the front end, once the user hits the submit button they are presented with a loading wheel. If everything is a success, the form is faded out and a thank you message is presented.