- Original Poster
- #1
I'm experimenting with hidden fields to solve a simple solution but it doesn't work (probalby because I'm pant's at programming).
A form has a hidden field that contains the email subject:
<input type="hidden" name="subject" value="some text string">
This gets sent to a php file that processes the form. I'm using:
$subject = $_POST['subject'];
then after validation the message gets sent:
mail("[email protected]", $subject , $message, "From: [email protected]");
$subject isn't getting picked up and processed. When I get the email the subject line is blank
What's missing? All the tutorials say the variables should get passed just like from a normal input but mine isn't.
A form has a hidden field that contains the email subject:
<input type="hidden" name="subject" value="some text string">
This gets sent to a php file that processes the form. I'm using:
$subject = $_POST['subject'];
then after validation the message gets sent:
mail("[email protected]", $subject , $message, "From: [email protected]");
$subject isn't getting picked up and processed. When I get the email the subject line is blank
What's missing? All the tutorials say the variables should get passed just like from a normal input but mine isn't.