PDA

View Full Version : Form stopped working. This seems to happen when I mess with password protect



tiaki
05-07-2006, 07:43 AM
Hello Again,

I don't know why but my form stopped working. I am getting these error message in the control panel log.

[2006-05-07 01:34:44]: error: directory is writable by others: (/home/tiaki05/public_html)

[Sun May 7 01:34:44 2006] [error] [client 66.191.3.55] Premature end of script headers: /home/tiaki05/public_html/tiakirequestform.php

My form is located at www.americastsunami.net/tiakirequestform.html (http://www.americastsunami.net/tiakirequestform.html)

The php was working but here it is anyway. if it helps.
<HTML>
<HEAD>
<TITLE>Your message is being processed</TITLE>
</HEAD>
<BODY>
<H2>Thank-you for contacting America's Tsunami, Your message is being processed.</H2>

<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "tiakirequestform@americastsunami.net";
$mailsubj = "ebookrequest";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>


Thanks in advance,

Tiaki

navaldesign
05-07-2006, 09:02 AM
Connect with BlueFtp and make sure that your php file properties is set to 644. Also, your public_html properties should result in 750.

tiaki
05-08-2006, 04:58 PM
It works fine now thanks again.

Tiaki