![]() |
![]() ![]() |
![]() |
-zqub- |
![]()
Post
#1
|
Goście ![]() |
Witam.
Proszę mi powiedzieć co mam nie tak w kodzie php lub html: PHP <?php $mailto = 'martinszyd@poczta.fm' ; $subject = "temat" ; $formurl = "http://www.zqub.keep.pl/kontakt.html" ; $errorurl = "http://www.zqub.keep.pl/error.html" ; $thankyouurl = "http://www.zqub.keep.pl/index.html" ; $uself = 0; // -------------------- END OF CONFIGURABLE SECTION --------------- $headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ; $name = $_POST['name'] ; $email = $_POST['email'] ; $comments = $_POST['comments'] ; $http_referrer = getenv( "HTTP_REFERER" ); if (!isset($_POST['email'])) { header( "Location: $formurl" ); exit ; } if (empty($name) || empty($email) || empty($comments)) { header( "Location: $errorurl" ); exit ; } if ( ereg( "[\r\n]", $name ) || ereg( "[\r\n]", $email ) ) { header( "Location: $errorurl" ); exit ; } if (get_magic_quotes_gpc()) { $comments = stripslashes( $comments ); } $messageproper = "This message was sent from:\n" . "$http_referrer\n" . "------------------------------------------------------------\n" . "Name of sender: $name\n" . "Email of sender: $email\n" . "------------------------- COMMENTS -------------------------\n\n" . $comments . "\n\n------------------------------------------------------------\n" ; mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.08" ); header( "Location: $thankyouurl" ); exit ; ?> HTML <form action="feedback.php" method="post"> <input type="hidden" name="required" value="email"> <input type="hidden" name="title" value="martinszyd@poczta.fm"> <div id="pola"> <p><input type="text" name="name" size="15" id="kto"></p> <p><input type="text" name="email" size="20" id="email"></p> <p><input type="text" name="temat" size="25" id="temat"></p> <p><textarea name="comments" rows="10" cols="50" id="wiad">Twoja wiadomość</textarea></p> <p><input type="submit" name="opis" value="Wyślij"></p> </div> <div id="opis"> <p class="opis"><label for="kto">Kto*</label></p> <p class="opis"><label for="email">Adres @*</label></p> <p class="opis"><label for="temat">Temat</label></p> <p class="opis"><label for="wiad">Wiadomość*</label></p> </div> </form> Dlaczego nie wysyła poczty?? |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 7.07.2025 - 04:29 |