Connect to database and form validation

I have code for a website that is supposed to connect to a database and add to it. I can get it to connect, but not add. I need it to do that. Once it can, I then need the following validation done javascript:

1- Validate that the names are filled in, first and last name

2- Validate that they are letters, upper case and lower case. (You can use /^[a-zA-Z]+$/ as the regular expression)

3- Check to make sure the phone number is all numbers. (You can use /^[0-9]+$/ as the regular expression)

4- If they are updating the form make sure the form is filled out completely.

5- If they are creating a new record make sure they filled the form out completely.

If any of these fields are not met then the form will produce an alert and let them know what they are missing.

I attached the project files as a zip. Please let me know if more information is needed.

Skills: Javascript, MySQL, PHP

See more: what is a regular expression, regular expression code, regular expression 0, name validation in javascript, javascript upper, javascript validation, form connect database mysql, mysql expression, phone number validation php, connect database php form, javascript code form validation php, javascript code validation, connect database mysql, mysql validate, mysql connect database, php connect database, connect mysql database, database updating, javascript alert form, phone number validate

About the Employer:
( 21 reviews ) Salt Lake City, United States

Project ID: #6569748

2 freelancers are bidding on average $30 for this job


Hello sir, i read your requirements very-well and ready to start work from now. Hope you will give me a chance to do work with you, waiting for your reply, Thank you

$30 USD in 1 day
(78 Reviews)

hi, php/mysql/javascript/jquery programmer here. I can do this project today. Thank you. _.

$30 USD in 1 day
(1 Review)