Please can someone help me add some validation to this code to stop me getting blank emails sent?
Many thanks
Your validation routine needs to take place in the file with your form. After you get to this part of your code it is too late to validate.
ok Understood, HTML form looks like this:
Name (required)
Email (required)
Phone
Message (required)
This form is requesting javascript onclick validation . Have you added the link to your javascript file in the header of your form page as such:
<script type="text/javascript" src="javascriptFile.js"></script>
Hello,
I work with dreamweaver and I added ‘onClick’ validate form but for some reason I still get blank emails hence why I thought i could stop via PHP.
I have this at top of page: