As I expected, simple errors that I just overlooked. Thank you for your help. Now time for me to see if I can handle the rest of it. Thanks again.
[ADD]
Now I've run across a problem on the email side. I can get the email to be sent, but it lists the Send To email twice, the subject line is incomplete and all fields are not included; only nonvariable characters are seen.
Here is the PHP code.
Code:
<?php
/* recipients */
$to1 = 'emailaddress@email.com';
/* email subject line */
$subject1 = "Application for Employment for $name1";
/* message */
$name1 = $_POST ['name'];
$ssn1 = $_POST ['ssn'];
$dob1 = $_POST ['dob'];
$email1= $_POST ['email'];
$message1 = "NAME:". $name1 ."\r\n";
$message1 .= "SSN:". $ssn1 ."\r\n";
$message1 .= "Date of Birth:". $dob1 ."\r\n";
$message1 .= "Email Address:". $email1 ."\r\n";
/* additional headers */
$headers1 .= "To: ". $to1 ."\r\n";
$headers1 .= "From: ". $email1 ."\r\n";
$headers1 .= "Reply-To: ". $email1 ."\r\n";
mail($to1, $subject1, $message1, $headers1)
?>
Now this is my understanding, which isn't much since I'm new to PHP, and I'm following a variety of sites to build this:
$to1 is the sendto email address, but do not understand why it lists the address twice on the email. It displays as To: email; email.
$subject1 is the email subject, which should display as application for employment from $name1, but it does not display the $name1 variable.
$headers1 is self explanatory, but does not display at all in the email.
$message1 is the the body of the email, which only displays and executes everything in quotations, but no info is passed from the variables.