Witam serdecznie mam nastepujaca prosbe potrzebuje połączyc ten formularz
<?php
include_once("config.php");
************
$selected = "CONTACT";
$showform = TRUE;
$sendit = $_REQUEST['sendit'];
$youremail = $_REQUEST['youremail'];
$subject = $_REQUEST['subject'];
$message = $_REQUEST['message'];
$errorstring = "";
if(strlen($youremail) == 0
) $errorstring .="Sprecyzuj swój adres E-mail<br>"; if(strlen($subject) == 0
) $errorstring .="Sprecyzuj temat wiadomości<br>"; if(strlen($message) == 0
) $errorstring .="Wpisac treść wiadomości<br>"; if(strlen($youremail) < 9
|| strlen($youremail) > 64
) $errorstring .= "SprawdĽ poprawność adresu E-mail<br>"; else
{
$emailtail = strstr($youremail, '@'); if(!strstr($youremail, '@') || !strstr($emailtail, '.')) $errorstring .= "SprawdĽ poprawność adresu E-mail<br>"; }
if(strlen($errorstring) == 0
){ $subject = "Kontakt z ".$site_url." Strona - ".$subject;
$sent = mail($site_admin, $subject, $message, "FROM: ".$youremail); if($sent) $showform = FALSE;
}
}
include("header.php");
?>
<table width="100%" cellpadding="10" cellspacing="0"><tr><td valign="top">
<?php
if($showform == TRUE) {
?>
Jeśli masz jakieś pytania lub komentarze dotyczące strony lub usług, jakie oferu
jemy, nie wahaj sie skontaktować z nami przy użyciu formularza<br><br>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr><form method="post" action="contact.html"><input type="hidden" name="sendit" value="yes"><td style="padding:0px;" align="left"><br>
<?php if(strlen($errorstring) > 0
) echo "<table cellpadding=\"8\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr><td><font class=\"error\"><b>Znaleziono Błąd:</b><br><br>$errorstring</td></tr></table><br><br>";?> <table cellpadding="5" cellspacing="0" border="0">
<tr><td width="150"><b>Adres E-mail:</b></td><td><input type="text" name="youremail" class="form" style="width:150px;" value="
<?php echo stripslashes($youremail); ?>"></td></tr>
<tr><td><b>Tytuł:</b></td><td><input type="text" name="subject" class="form" style="width:150px;" value="
<?php echo stripslashes($subject); ?>"></td></tr>
<tr><td valign="top"><b>Treść:</b></td><td><textarea name="message" class="form" style="width:300px;" rows="6">
<?php echo stripslashes($message); ?></textarea></td></tr>
<tr><td></td><td><input type="submit" value="Wyślij" class="form"> <input type="reset" value="Wyczyść" class="form"></td></tr>
<tr><td colspan="2" align="right"></td></tr>
</table><br>
</td></form></tr>
</table>
<?php
}
else echo "<b>Twoja wiadomość została wysłana do Administratora - <b>".$site_name."</b> -. Postaramy się odpowiedzieć w ciągu 48 godzin (2 dni robocze)<br><br>Dziękujemy za zainteresowanie i komentarze<br>Admin Hostingu</b><br><br>"; ?>
</td></tr></table>
<?php
include("footer.php");
?>
z tym tokenem?
http://phonik.pl/token2/formularz.phpchodzi mi oto żeby zrobić tak ze najpierw trzeba potwierdzic token w tym czasie wysyłanie miałoby być niemożliwe jesli teken bydzie sie zgadzał to wtedy aktywuje sie ikonka wyslij Bardzo prosze o pomoc gdyz kuleje w temacie php... pozdrawiam Zumi
Ten post edytował Zumi 17.07.2008, 22:22:38