The only way to retrieve the data from this form is to include an email address between "<>" tags in the from_who variable (in line 4). In other words, this does not work:
$from_who="Questionaire";
Why is this? This is very perplexing. Feel free to modify anything you feel is unnecessary.
$from_who="Questionaire";
Why is this? This is very perplexing. Feel free to modify anything you feel is unnecessary.
PHP Code:
<?php
$youremail="[email protected]";
$emailsubject="Results";
$from_who="Questionaire <[email protected]>";
$pagetitle="Thank You!";
if (getenv(HTTP_CLIENT_IP)){
$user_ip=getenv(HTTP_CLIENT_IP);
}
else {
$user_ip=getenv(REMOTE_ADDR);
}
$mailbody.="Did you find the location convenient?\n\n$location\n................................";
$mailbody.="\n\nDid you find the office comfortable?\n\n$comfort\n................................";
$mailbody.="\n\nDid you find the equipment easy to use?\n\n$ease\n................................";
$mailbody.="\n\nDid you find the equipment you needed?\n\n$found\n................................";
$mailbody.="\n\nDid you find the software you needed?\n\n$software\n................................";
$mailbody.="\n\nAdditional Comments:\n\n$additional\n................................";
$mailbody.="\n\nName:\n\n$name\n................................";
$mailbody.="\n\nEmail Address:\n\n$email\n................................";
$mailbody.="\n\nPhone Number:\n\n$phone\n................................";
$mailbody.="\n\nSenders Browser:\n\n$HTTP_USER_AGENT\n................................";
$mailbody.="\n\nSenders IP Number:\n\n$user_ip\n................................";
mail("$youremail", "$emailsubject", "$mailbody", "From: $from_who");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<table>
<tr>
<td><h6>Thank you.</h6></td>
</tr>
</table>
</body>
</html>
Comment