![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 16 Pomógł: 0 Dołączył: 28.08.2009 Ostrzeżenie: (0%) ![]() ![]() |
am takie pytanie czy na yoyo.pl potrzeba jakiegoś dodatkowego modu do tego skryptu:
Kod <?php if (count($_POST)) { $email = 'adamo919@wp.pl'; // Adres e-mail adresata $subject = 'Temat'; // Temat listu $message = 'Dziękujemy za wysłanie formularza'; // Komunikat $error = 'Wystąpił błąd podczas wysyłania formularza'; // Komunikat błędu $charset = 'iso-8859-2'; // Strona kodowa $head = "MIME-Version: 1.0\r\n" . "Content-Type: text/plain; charset=$charset\r\n" . "Content-Transfer-Encoding: 8bit"; $body = ''; foreach ($_POST as $name => $value) { if (is_array($value)) { for ($i = 0; $i < count($value); $i++) { $body .= "$name=" . (get_magic_quotes_gpc() ? stripslashes($value[$i]) : $value[$i]) . "\r\n"; } } else $body .= "$name=" . (get_magic_quotes_gpc() ? stripslashes($value) : $value) . "\r\n"; } echo mail($email, "=?$charset?B?" . base64_encode($subject) . "?=", $body, $head) ? $message : $error; } else { ?> <form action="" method="post"> <table align='center' cellpadding='0' cellspacing='0' class='tbl'> <tr> <td width='100'>Nick:</td> <td><input type='text' name='nick' maxlength='50' class='textbox' style='width: 200px;'></td> </tr> <tr> <td width='100'>Nr GG:</td> <td><input type='text' name='nrgg' maxlength='50' class='textbox' style='width: 200px;'></td> </tr> <tr> <td width='100'></td> <td><input type=submit value="Wyślij"/></td> </tr> </table> </form> <?php } ?> ponieważ wszystko działa pięknie wyświetla etc jest napis po kliknięciu wyślij: Dziękujemy za wysłanie formularza lecz na pocztę nic nie dochodzi .... ![]() A jeżeli nie znacie odpowiedzi może nakierujecie mnie na jakiś skrypt ![]() |
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.08.2025 - 22:26 |