
Mam w pliku html formularz
- Kod: Zaznacz wszystko
<form action="mail.php" method="post">
Imie:</span></td><td style="width:100%;" ><input type="password" name="imie" SIZE="10" maxlength="10" ></td></tr><tr><td class="LabelV" ><span >
Nazwisko:</span></td><td><input type="password" name="nazwisko" size="30" maxlength="29" ></td></tr> </table> </div>
<input type="hidden" name="adresat" value="aaaa@aaaaa.pl" />
</form>
a w pliku mail.php mam
- Kod: Zaznacz wszystko
<?
/* Form Mailer Program */
/* Edit HTML at bottom of script for HTML output */
/* ©2000 YOA/LSYF/YoAi */
$errorpage = "error.htm";
$mailto = "niewiemcosiedzieje2@wp.pl";
$required = array("subject","email"); // what do you wish to require?
// edit below this line at your own risk
$n = 0;
do {
$r = $required[$n];
if(!$$r) {
print Header("Location: $errorpage");
exit;
}
$n++;
} while ($n != count($required));
$a = urldecode($QUERY_STRING);
$a = str_replace("&","
",$a);
$a = str_replace("=",": ",$a);
$a = str_replace("@","_AT_",$a);
mail($mailto,$HTTP_GET_VARS["subject"],$a,"From: $mailto");
?>
<html><head><title>Mail Sent</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h2>Mail sent.</h2>
</body></html>
ten mi nie działa
- Kod: Zaznacz wszystko
http://www.kurshtml.boo.pl/html/wyslanie_formularza_bez_programu_pocztowego,formularze.html
co zrobić żeby po kliknieciu Submit wysyłało mi to na maila co wpisze w imie i nazwisko
Pozdrawiam
Dodano Dzisiaj, 19:03:
refresh