I’m trying to create am online application for some job postings we have at work.
I have the form items (text boxes / drop downs /etc) portion set up and i have the send email with a captcha part setup
im unclear on how to “call” the value of something like
<select name="education">
<option value="None">None</option>
<option value="HighSchool">HighSchool</option>
<option value="BA/BS">BA/BS</option>
<option value="MA/MS">MA/MS</option>
<option value="MBA">MBA</option>
<option value="Ph.D">Ph.D</option>
<option value="Other">Other</option>
</select>
In the mail portion of the code how do insert the value of the education dropdown into the body?
$to = "rbarbro@markonsolutions.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: jobs@markonsolutions.com";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
actuall page is located here
Try:
Make sure to sanitize your form posts though, otherwise people could inject JavaScript or whatever they want into your form.