so far I have a script that checks if some fileds were left empty or not. for the email field I want to make a verification, if the email is valid or not. how can I add it to my script?
if (!$title) {
$Msg.="<b>- Job Title </b><br>";
}
if (!$company) {
$Msg.="<b>- Company Name </b><br>";
}
if (!$city) {
$Msg.="<b>- City</b><br>";
}
if (!$country) {
$Msg.="<b>- Country </b><br>";
}
if (!$email) {
$Msg.="<b>- E-mail </b><br>";
}
if ($Msg) {
echo "Your submission is incomplete. You didn't complete the follwing fields:<br>
<br>