hey im trying to put email validation in php, i tried searching and the code i found does not work it shows 500 internal error here is my code
and here is the code im trying to addPHP Code:<?php
$to = "";
$subject = "subject";
$mail = $_POST['mail'];
if ($mail = $_POST['mail']) {
$body = "E-Mail: $mail";
echo "success";
mail($to, $subject, $body, "From: $mail");
} else {
echo "error";
}
?>
http://www.go4expert.com/forums/showthread.php?t=1128

