Hi guys,
I have a contact form on my website:
www.soundtrack.ie/contact
I want to be able to put a redirect into my code so that when someone uses the send email form, it redirects back to the same contact page - currently it just stays on a blank page once its sent.
Here is the code - I just want to know what to put in here to make it redirect back to the same page again?
Code:<?php if(isset($_POST['submit'])) { $to = "emmett.cooke@gmail.com"; $subject = "Music"; $name_field = $_POST['name']; $email_field = $_POST['email']; $message = $_POST['message']; $body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message"; echo "Data has been submitted to $to!"; mail($to, $subject, $body); } else { echo "blarg!"; } ?>


LinkBack URL
About LinkBacks







Reply With Quote

