My contact form is not working and I cant find the bug at all.
I have contact-us.php and sendmail.php and custom.js
Contact-us.php, has an include call to sendmail.php.
Also being honest with you I have included this script located at js/jquery.min.js but not sure if its related.
The contact form is working at http://www.completeoffice.co.uk/contact.php
but not at:
The contact form is located: dev.madhousecreative.co.uk/contact-us.php.
Youll see when you click send it does nothing. It doesnt send the email or say thank you. Its meant to send the email and give a message saying thank you etc.
Edit:
After suggestions in the answers i changed the name values in the input fields and the contact form and it now sends the email to my email address from the contact form, however, it will only send the email if all the fields are inputted correctly, i.e. numbers in the phone number field, correct email address etc. Which means its validating the form. if you dont input details correctly, it just doesnt send the email and refreshes the page, and nothing else happens. its meant to give details of errors of input to inform the user.
Also, if the email sends, the page just refreshes also, its not meant to do that, its just meant to give a thank you message as you can see at the bottom of the php code above.
so the email is sending if inputted right, and its validating but not outputting any messages to the user and is refreshing the page instead.
EDIT 2: AFTER COMMENTS I ADDED OTHER SCRIPTS CHANGED LINES In HEAD SECTION. DOESNT REFRESH ANYMORE. READ COMMENTS FOR FULL UPDATE
You forgot to include
jQuerysources. Firebug gives errorjQuery is not defined.EDIT
Instead of
write