<html> <head> <link rel="stylesheet" href="style.css" type="text/css"> </head> <center> <body bgcolor="#DCDCDC"><div> <?php $imie=$_POST['imie']; $email=$_POST['email']; $title=$_POST['title']; $emaile=$_POST['emaile']; $tresc=$_POST['tresc']; { echo "<table border=\"0\" align=\"center\"><form method=\"post\"> <tr> Imię i nazwisko osoby wysyłającej</tr><br> <tr><input type=\"text\" name=\"imie\" style=\"width: 230px\"></tr> <tr><br><br> Adres e-mail osoby wysyłającej:</tr><br> <tr><input type=\"text\" name=\"email\" style=\"width: 230px\"></tr> <br> <tr><br> Temat:</tr><br> <tr><input type=\"text\" name=\"title\" style=\"width: 230px\"></tr> <br> <tr><br> E-maile do wysyłki (po przecinku!):</tr><br> <tr><textarea name=\"emaile\" style=\"width: 500px; height: 20px\"></textarea></tr> <tr> <br> Treść wiadomości (obsługa HTML/CSS):</tr><br> <tr><textarea name=\"tresc\" style=\"width: 500px; height: 300px\"></textarea></tr> <tr> <br><br> <input type=\"submit\" name=\"submit\" value=\"Wyślij\"> <input type=\"reset\" value=\"Resetuj\"></tr></form> </table>"; } $header .= "Content-Type: multipart/alternative; boundary=\"$mime_boundary\"\n"; $header = "From: $imie <$email>\n"; $header .= "MIME-Version: 1.0\n"; $header .= "Content-type: text/html; charset=utf-8 \r\n"; $headers = iconv("UTF-8","ISO-8859-2", $headers); $message = "$tresc"; echo " <html><body onselectstart=\"return false\"><div> <h2><b>Wiadomość została wysłana!</b></h2> </div>"; } else echo "<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\"><div align=\"center\"><span style=\"color: #EC0000\"><h3>Formularz nie został wypełniony poprawnie!</h3></span><input type=\"submit\" onclick=\"history.back();\" value=\"Cofnij\"></div>" ?> </body> </div></center> </body> </html>
Jest możliwość wysyłki za pomocą HTML/CSS. Jeżeli wrzucę skrypt w postaci:
to po odebraniu maila pokazuje się wszystko super tylko hiperłącze występuję w takiej postaci:
http://poczta.o2.pl/"http://google.pl/"
poproszę o jakieś wskazówki ponieważ nie wiem co jest nie tak w skrypcie.