Hello all, this is killing me. This little web program has worked on another linux server with apache and php but I can't figure out why my web form will not pass it's values.
Basically, the user goes to index.html and fills out a form. Then, when they click submit, it is posted to a php file that sends an email. The email sends ok, just doesn't have anything in the values, they are blank.
here is the 2 short pages:
index.html
----------
<HTML>
<HEAD>
<TITLE>test</TITLE>
</HEAD>
<BODY>
<FORM METHOD="POST" action="form_mail.php">
<table>
<tr>
<td>Status:</td><td><font size=-6 face=verdana><input type="radio" name="status" value="New Hire">New Hire <input type="radio" name="status" value="Separation">Separation <input type="radio" name="status" value="ReHire">Rehire <input type="radio" name="status" value="Transfer">Transfer</td>
</tr>
</table>
<input type=submit value="Submit">
</form>
</BODY>
</HTML>
form_mail.php
-------------
<HTML>
<TITLE>
test
</TITLE>
<body>
<?php
$email_to = "user@test.com";
$subject = "* test subject *";
$message = "* test message *\n\n
Status: ". $status ."\n\n
Employee: ". $name ."\n\n
Title: ". $title ."\n\n
Manager: ".$manager ."\n\n
Date: ". $date ."\n\n
Location: ".$location ."\n\n
Comments: ". $comments ."\n";
$email_from = "From:test@test.com";
mail($email_to,$subject,$message,$email_from);
?>
</body>
</HTML>
Basically, the user goes to index.html and fills out a form. Then, when they click submit, it is posted to a php file that sends an email. The email sends ok, just doesn't have anything in the values, they are blank.
here is the 2 short pages:
index.html
----------
<HTML>
<HEAD>
<TITLE>test</TITLE>
</HEAD>
<BODY>
<FORM METHOD="POST" action="form_mail.php">
<table>
<tr>
<td>Status:</td><td><font size=-6 face=verdana><input type="radio" name="status" value="New Hire">New Hire <input type="radio" name="status" value="Separation">Separation <input type="radio" name="status" value="ReHire">Rehire <input type="radio" name="status" value="Transfer">Transfer</td>
</tr>
</table>
<input type=submit value="Submit">
</form>
</BODY>
</HTML>
form_mail.php
-------------
<HTML>
<TITLE>
test
</TITLE>
<body>
<?php
$email_to = "user@test.com";
$subject = "* test subject *";
$message = "* test message *\n\n
Status: ". $status ."\n\n
Employee: ". $name ."\n\n
Title: ". $title ."\n\n
Manager: ".$manager ."\n\n
Date: ". $date ."\n\n
Location: ".$location ."\n\n
Comments: ". $comments ."\n";
$email_from = "From:test@test.com";
mail($email_to,$subject,$message,$email_from);
?>
</body>
</HTML>