display form ?>
}else{ // found post data .. deal with it $from=$_POST['sender']; // send mail : if (mail($to,$_POST['subject'],$_POST['message'],"From:$from\n")){ // display confirmation message if mail sent successfully echo "Your mail was indeed sent to $to.