![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 17 Pomógł: 0 Dołączył: 29.11.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam was.
Szuka i szukam jakiegoś prostego zarazem estetycznego formularza kontaktowego it rafiłem w końcu na taki i bardzo prosty. Lecz wysyła email z krzaczkami czyli nie ma liter ąęćźż etc. Czy ktoś może mi powiedzieć co należy dodać w tym kodzie ? A może znacie jakiś konkretny prosty ładny formularz z PL co by tylko wpisać email, zrobić include i basta. CODE /* Author: Andrew Walsh Date: 30/05/2006 Codewalkers_Username: Andrew This script is a basic contact form which uses AJAX to pass the information to php, thus making the page appear to work without any refreshing or page loading time. */ $to = "fuli5@tlen.pl"; //This is the email address you want to send the email to $subject_prefix = "Wiadomość z finanse.biz"; //Use this if you want to have a prefix before the subject if(!isset($_GET['action'])) { die("You must not access this page directly!"); //Just to stop people from visiting contact.php normally } /* Now lets trim up the input before sending it */ $name = trim($_GET['name']); //The senders name $email = trim($_GET['email']); //The senders email address $subject = trim($_GET['subject']); //The senders subject $message = trim($_GET['msg']); //The senders message mail($to,$subject,$message,"From: ".$email.""); //a very simple send echo 'contactarea|Thank you '.$name.', your email has been sent.'; //now lets update the "contactarea" div on the contact.html page. The contactarea| tell's the javascript which div to update. ?> Ok już działa glanc ... po dodaniu CODE $subject=iconv("UTF-8","ISO-8859-2", $subject);
$subject='=?iso-8859-2?B?'.base64_encode($subject).'?='; $message=iconv("UTF-8","ISO-8859-2", $message); Ten post edytował Fuli5 28.02.2009, 20:42:44 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 24.08.2025 - 21:50 |