Cannot modify header information - headers already sent by (output started at /home/content/s/a/g/sagates/html/contact.php:1) in /home/content/s/a/g/sagates/html/contact.php on line 17
Here is my code:
Code: Select all
<?php
ob_start();
$name = $_REQUEST['name'];
$phone = $_REQUEST['phone'];
$email = $_REQUEST['email'];
$pref = $_REQUEST['pref'];
$type = $_REQUEST['type'];
$kind = $_REQUEST['kind'];
$message = $_REQUEST['message'];
$body = "Name: $name
\nPhone Number: $phone
\nEmail: $email
\nContact Preference: $pref
\nJob Type: $type
\nInterested In: $kind
\nDescription: $message \n\n";
mail( "brett.mcdaniel@ttu.edu", "Contact Request", $body);header("Location: thankyou.htm");
?>