![]() |
![]() ![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 37 Pomógł: 0 Dołączył: 19.01.2012 Ostrzeżenie: (0%) ![]() ![]() |
Witam
Mam taki problem, mam taki formulaz jak ponizej. <form id="contact-form" method="post" action="skrypt.php"> <fieldset> <div class="wrapper"> <label class="img-indent2"><span class="text-form">Name:</span><input nazwisko="name" type="text" /></label> <label class="fleft"><span class="text-form">Telefon:</span><input name="telefon" type="text" /></label> </div> <div class="wrapper"> <label class="img-indent2"><span class="text-form">Vorname:</span><input name="imie" type="text" /></label> <label class="fleft"><span class="text-form">E-mail:</span><input name="email" type="text" /></label> </div> <div class="wrapper"> <div class="text-form">Text:</div> <div class="extra-wrap"> <label class="message"><textarea name="tresc"></textarea></label> <div class="buttons"> <a class="button2" href="#" onClick="document.getElementById('contact-form').reset()">Löschen</a> <a class="button2" href="#" onClick="document.getElementById('contact-form').submit()">Senden</a> </div> </div> </div> </fieldset> </form> i potrzebuje zeby, ktos wypelniajac ten formularz po kliknieciu "send" wyslalo go mi na email w takiej postaci. Imie: XXX Nazwisko: XXX Numer Tel. 555000555 Email: xxx@xxx.com Tresc: xxxxxxxxxxxxxxxxxxx Czy ktos mi pomoze to napisac ? Niestety nie znam sie na PHP, jak by to byla javascript lub java to nie bylo by problemu. Z gory dziekuje za pomoc i pozdrawiam (IMG:style_emoticons/default/smile.gif) |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 006 Pomógł: 111 Dołączył: 23.07.2010 Skąd: Kraków Ostrzeżenie: (0%) ![]() ![]() |
Pomożemy, jak się trochę sam wysilisz. Do wysyłania maili wykorzystaj PHPmailer.
Jeśli chcesz gotowca, to należy to napisać w odpowiednim dziale. |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 45 Pomógł: 2 Dołączył: 12.09.2005 Ostrzeżenie: (0%) ![]() ![]() |
Czytałeś w ogóle manula na php.net? Najprostszy przykład własnie stamtąd:
Dodam tylko, że zmienne z post są przechowywane w $_POST. Czyli : W tym wypadku wyświetli to co masz w polu name=telefon. Chyba już sobie poradzisz. Btw to nie ma nic wspólnego z obiektowością. Ten post edytował Yorki 12.08.2012, 13:49:19 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.09.2025 - 20:14 |