Witam,
chciałbym mieć na swojej stronie taki formularz:
[http://www.savcom.com.pl/formularz.html]
Męcze się już od wczoraj, ale nic nie wychodzi.
Plik index.html
<meta name="Description" content=""> <meta name="Keywords" content=""> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <body topmargin=100 rightmargin=100 leftmargin=200> T E S T M A I L E R
</font><p><div align="right"><form action="mailer.php" method=get> <input type="hidden" name="subject" value="Test Form Results"> Name
<input type="text" name="name" size=40 maxlength=40><br>E-Mail
<input type="text" name="email" size=40 maxlength=40><br><input type="submit" value="Submit">
Plik mailer.php
<?
/* 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) {
}
$n++;
} while ($n != count($required));
",$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>
Mój e-mail niewiemcosiedzieje2@wp.pl
Chce, aby tam przychodziły dane z formularza.
Jak mam to zrobić?
Pozdrawiam
Poprawiłem
~mike_mech