It crashes apache...
If someone can help me out, that would be nice. Even just telling me whether or not this works on their server will help.
People would fill out a form, click submit (form), they double check the details entered on a second page, and if everything is all good, an email button should be there. When they click that email button, the script below is accessed, then apache crashes.
I am able to send the email if i have $message instead of $_POST['relay'] and also, if i have no variables in the mail().
eg. if i have:
$mail = mail("some@email.com", "Statement","Message in a bottle", "From: Somewhere@home.com");
it will send.
Code: Select all
<?php
$message = "Hey World.";
echo "<input type='hidden' name='relay' value='<?$message?>'>";
$mail = mail("$email", "Confy",$_POSTї'relay'], "From: Somewhere@home.com");
if($mail) {
echo "Mail sent";
} else {
echo "Mail not sent";
}
?>Display Errors: On
Error Level: E_ALL
Register Globals: Off
Windows Error:
appname: apache.exe
appver: 0.0.0.0
Modname:php4ts.dll
modver: 4.3.3.3
offset: 0009defe[/php_man]