signup.htm includes the following code:
<form action="sendsignup.php" enctype="text/plain" method="POST">
<p>Name: <input name="name" type="text" id="name" size="40" ></p>
<p>E-mail address: <input name="email" type="text" id="email" size="40" ></p>
<p>Comment:</p>
<p><textarea name="comment" cols="55" rows="5" id="comment" ></textarea></p>
<p><input type="submit" name="Submit" value="Submit"></p>
</form>
sendsignup.php looks like this:
<?
$email = $_POST["email"] ;
$name = $_POST["name"] ;
$comment = $_POST["comment"] ;
$message = "Someone has just signed up for your mailing list!
Name: $name
Email: $email
Comment: $comment
Be sure and add this person to your list!";
mail( "kyle@kyleknapp.com", "Mailing List Signup", $message, "From: $email");
header( "Location: http://www.kareenking.com/thankyou.htm" );
?>
The form looks right, you fill it in and click submit. You are redirected to the "thankyou" page, and sendsignup.php sends the email as expected. However the variables are all blank.
My host uses PHP5 - I read somewhere that this method won't work with newever versions of PHP as certain global variables are disabled for security reasons, but I couldn't find a workaround solution. Any ideas?