Hi frnds ....
I am trying to create a contact form in PHP , MySql .... In my form i have two 3 input fields n a Submit Button .....
1. Name
2. email
3. SecurityCode ( here user have to enter the captcha code )
m collecting all information frm user and if the captch code entered by the user is correct then the values will be entered into my database n emailed to some adress ....
Everything is working perfectly ....... But my problem is ...
I want to check these things before submitting the form ..
1. Name field is empty
2. User has entered a valid email
3. User has entered the correct Captcha code as shown in image
# If anything wrong i want to display the information n don't want submit or refresh the page....
# If everything is correct , then submit the form and do the actions ....
# I have searched in Google .... for some Ajax Validation ... But nothing is working perfectly n are too mess ....
# Can anyone tell me a simple solution or just an Idea for how to handle this ... please ...