I have a simple script that sends e-mails to my e-mail...I want the "Thank you" to be in a window...I know that I have to use javascript, but I don't know how to do it...I don't know neither what I have to put nor where...
script
<?
if (ereg("([0-9,a-z,A-Z]+)(.,)@(.,,-).{2}([0-9,a-z,A-Z])?$", $email)) {
mail("email", "subject", "body", "from: $email");
echo "Thank you!";
}else{
echo "Sorry!";
}
?>
Thank you in advance