I'm having trouble passing input from a Form to PHP.
My Form is:
<FORM method=post action="xxx.php">
Your email address: <INPUT type="text" name="email"><br>
What's the subject: <INPUT TYPE=text NAME="thesubj" value="type it in"><br>
xxx.php is:
$to="aaa@aaa.bla";
$frommail=$email;
$info="Problems?";
mail ($to, $thesubj, $info, "from:$frommail"
;
I do get the mail and $to and $info which are defined here, but I don't get $thesubj and who it's from. If I echo $thesubj and $email it's just blank.
Any help would be appreciated.
Thanks.
netmind
My Form is:
<FORM method=post action="xxx.php">
Your email address: <INPUT type="text" name="email"><br>
What's the subject: <INPUT TYPE=text NAME="thesubj" value="type it in"><br>
xxx.php is:
$to="aaa@aaa.bla";
$frommail=$email;
$info="Problems?";
mail ($to, $thesubj, $info, "from:$frommail"
I do get the mail and $to and $info which are defined here, but I don't get $thesubj and who it's from. If I echo $thesubj and $email it's just blank.
Any help would be appreciated.
Thanks.
netmind