I need some code to validate an email address sent on my form.
Does anyone know if its possible to add anything to exsiting code below to do this.
I’m mainly bothered that the email has a ‘@’ symbol, nothing more complex really.
Here’s my code which works fine at the mo:<?php // Getformdataandcreateemail $Email2="[email protected]"; $email=$_POST['Email']; $name=stripslashes($_POST['Name']); $subject=stripslashes($_POST['Subject']); $messagecont=stripslashes($_POST['Message']); $message= <<
Many thanks for looking