I want my contact.php page to validate whether all fields have been completed on a feedback form and to check the validity of an email address entry.
The validation script won't work and I have tried every conceivable amendment to try and get it to this weekend, and now I need to get some sleep as it is 1am in the UK!
At present the page is showing up on my browser so there can't be any serious issues with the PHP entered in terms of syntax, however as soon as the page loads I receive the "mandatory fields missing" error message. Other times when I changed the code I would receive the "mandatory fields missing" error message correctly after missing a field's content but when I entered data in all fields with an incorrect email address (no @ sign), the fields would just go blank and nothing is relayed back to the user making me think that there is also an issue with the email validation script, however I have used this script before and it works fine.
Any help would be truly appreciated as I have a deadline of the end of this week to meet for the overall project and the issue is putting a serious dent in my progress!
Many thanks in advance. I attach the relevant div's script containing PHP mailing code and the relevant HTML form Erroneous-contact-PHP.txt