Sunday 14 November 2010

Form Validation

Yesterday I decided that I would validate my form to reduce the amount of invalid forms that are submitted to me. I created a Javascript file which I then linked to my form HTML file via the head, I used IF statements which prompt the user to enter data when certain fields are left empty. I have inserted a note and highlighted the fields so the user should understand the fields that are compulsory. I decided to allow the user to submit a form without a phone number as I feel some users may want to keep this information private. I plan to continue to update my sites CSS syles. : )

No comments:

Post a Comment