redirect error

hi i am trying to redirect page to another but its not working , its giving me an error here is the code

<?php $name=$_POST["name"]; $email=$_POST["email"]; $message=$_POST["message"]; $email_body= "Name: " . $name." " ."\n" . "Email: " .$email ." "."\n" . "Message: " . $message." " ."\n"; // Todo: Add sent email function below header('Location: contact-thanks.php'); ?> please help me

whats the error message? I dont see where you’re sending the email out.

Sponsor our Newsletter | Privacy Policy | Terms of Service