Sunday, 1 November 2009

Form Validation

After having the problem of the form submitting blank data into the databse when the submit button was pressed, I needed a way o overcome this. I decided to use form validation with JQuery. So now when the submit button for the form is clicked, a message will be shown telling the user that they have to fill out the fields before they can submit the form. Even if one of the fields in the form are not filled in then the data will not be submitted. Both the name and dream fields have to be filled in for the data to be sent to the database.

No comments:

Post a Comment