Thread View: alt.pl.programy.flash-5
4 messages
4 total messages
Started by ISS
Tue, 26 Feb 2008 20:57
skrypt php a formularz we flash - pole from: ?
Author: ISS
Date: Tue, 26 Feb 2008 20:57
Date: Tue, 26 Feb 2008 20:57
36 lines
2006 bytes
2006 bytes
Witam, poratujcie, Wszystkie zmienne elegancko wypelniane sa danymi z formularza flash, natomiast nie wiem jak zrobic aby rowniez pojawiala sie informacja o adresie mejlowym nadawcy w polu FROM: (Od:). Zmienna $email_rej przechowuje prawidlowo w emailbody wpisany e-mail nadawcy z formularza, jednakze nie wiem jak sprawic by pojawil sie on takze w polu from:(od:) Z gory dziekuej za pomoc <?php $ToName = "Rejestrator zgloszen "; $ToEmail = "test@arc.pl"; $ToSubject = "REJESTRACJA ze strony"; $EmailBody = "Imie i nazwisko: $name<br> Telefon: $telefon<br> Osoba towarzyszaca:$osoba_tow<br> E-mail: $email_rej<br> Przyjde z dzieckiem: $dziecko_tn<br> Imie/ona dziecka: $dziecko_imie<br> Wiek dziecka: $dziecko_wiek<br> Spodziewam sie dziecka: $dziecko_spodziewam<br> -----------------------------------------------------------------------------------------<br> Adres do korespondencji: $adres"; //polskie znaki $Header = "Content-type: text/html; charset=utf-8\r\n"; $Header .= "Content-Transfer-Encoding: 8bit\r\n"; $Email = $email_rej; mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, $Header, "From:".$Email.">"); ?>
Re: skrypt php a formularz we flash - pole from: ?
Author: olo
Date: Wed, 27 Feb 2008 08:01
Date: Wed, 27 Feb 2008 08:01
15 lines
1264 bytes
1264 bytes
ISS pisze: > Adres do korespondencji: $adres"; > //polskie znaki > $Header = "Content-type: text/html; charset=utf-8\r\n"; > $Header .= "Content-Transfer-Encoding: 8bit\r\n"; to chyba "troche" NTG ;) $Header .= "From: ".$from_nazwa."<".$from_email.">"; -- pozdrawiam! http://webtrunki.pl - piwa, wina, wódki, domowe wyroby ZAPRASZAMY!!
Re: skrypt php a formularz we flash - pole from: ?
Author: ISS
Date: Wed, 27 Feb 2008 11:11
Date: Wed, 27 Feb 2008 11:11
13 lines
1323 bytes
1323 bytes
>> $Header = "Content-type: text/html; charset=utf-8\r\n"; >> $Header .= "Content-Transfer-Encoding: 8bit\r\n"; > > to chyba "troche" NTG ;) > > $Header .= "From: ".$from_nazwa."<".$from_email.">"; > ----- aha, czyli wystarczy dodac te deklaracje zmiennej $Header, natomiast z nawiasu (mail) usunac wpisy po $Header.... ? ISS
Re: skrypt php a formularz we flash - pole from: ?
Author: olo
Date: Thu, 28 Feb 2008 07:02
Date: Thu, 28 Feb 2008 07:02
17 lines
1391 bytes
1391 bytes
ISS pisze: >> $Header .= "From: ".$from_nazwa."<".$from_email.">"; >> > ----- > > aha, czyli wystarczy dodac te deklaracje zmiennej $Header, natomiast z > nawiasu (mail) usunac wpisy po $Header.... ? > tu znajdziesz więcej na temat używania funkcji mail w php http://pl2.php.net/manual/pl/ref.mail.php -- pozdrawiam! http://webtrunki.pl - piwa, wina, wódki, domowe wyroby ZAPRASZAMY!!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads