Email form and redirect back to the site
can anyone help me on this?
i've tried this code but doesn't send email to my email account
<?php if(isset($_POST['submit'])) {
$to = "myemail@sample.com"; $name = $_POST['name']; $contact = $_POST['contactl']; $body = "From: $name\n E-Mail: $contact; echo "Data has been submitted to $to!"; mail($to, $body);} else { echo "error!";} ?>can you help me on this?
Thanks
Writing & Submissions to 5 Blog Networks