Probably a very simple solution but my iffy programming skills can't solve it.
I have a form with a hidden field that contains the email subject:
<input type="hidden" name="subject" value"some text string">
When is process the form I want to pick up the variable and use it when I send the email.
I'm using:
$subject = $_POST['subject'];
then after validation:
mail("mail@domain.com", $subject , $message, "From: callback@domain.com" );
$subject isn't getting picked up and processed.
What's missing?