My Form: contact.php
<form action="sendmail.php" method="post">
Name: <input type="text" name="name" size="20" maxlength="20"><br />
Email: <input type="text" name="email" size="30" maxlength="30"><br />
Subject: <input type="text" name="subject" size="30" maxlength="30"><br />
Text:<textarea name="text" name="text" cols="50" rows="10"></textarea><br />
<input type="submit" name="submit" value="Send">
</form>
My Handler: sendmail.php
<?php
@extract($_POST);
$name = stripslashes($name);
$email = stripslashes($email);
$subject = stripslashes($subject);
$text = stripslashes($text);
mail('jonwalk@mydomain.com',$subject,$text,"From: $name <$email>") or die('couldn\'t send email');
header("location:thankyou.php");
?>
For some reason this simple script just isn't working for me. Does anyone see any reason for this?
Thanks