CODE
Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /home/kasaznetu/domains/twittersymphony.com/public_html/form2mail.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/kasaznetu/domains/twittersymphony.com/public_html/form2mail.php:32) in /home/kasaznetu/domains/twittersymphony.com/public_html/form2mail.php on line 41
Warning: Cannot modify header information - headers already sent by (output started at /home/kasaznetu/domains/twittersymphony.com/public_html/form2mail.php:32) in /home/kasaznetu/domains/twittersymphony.com/public_html/form2mail.php on line 41
A to kod skryptu:
CODE
<?php
$headers = "From: Anonymous on $SERVER_NAME <$mail>\n";
$headers .= "X-Mailler: PHP 3 Form2Mail made by FTLS, http://www.ftls.org/\n";
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
$message .= "\nSent by ".gethostbyaddr($REMOTE_ADDR). " ($REMOTE_ADDR)\n";
mail("adres@gmail.com", $subject, $message, $headers);
// En : Send mail
// Fr : Envoi du mail
if(! $exit_page)
$exit_page = "http://www.twittersymphony.com/";
$headers = "From: Anonymous on $SERVER_NAME <$mail>\n";
$headers .= "X-Mailler: PHP 3 Form2Mail made by FTLS, http://www.ftls.org/\n";
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
$message .= "\nSent by ".gethostbyaddr($REMOTE_ADDR). " ($REMOTE_ADDR)\n";
mail("adres@gmail.com", $subject, $message, $headers);
// En : Send mail
// Fr : Envoi du mail
if(! $exit_page)
$exit_page = "http://www.twittersymphony.com/";
Proszę o pomoc.