Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][PHP] Plik PHP do wysyłki maila, Mail
-Kamyk89-
post
Post #1





Goście







Witam wszystkich,

Od paru już dni męczę się aby napisać do tego plik sendmail.php....Pomoże ktoś, kto się w tym orientuje ? Stawiam piwo normalnie za pomoc


  1. <form action="js/sendmail.php" method="post" id="contact-form">
  2. <div class="row">
  3. <div class="holder span8"><div class="message"><div class="top"></div><div class="contents"><div id="alert"></div></div><div class="bottom"></div></div></div>
  4. <div class="field span8"><label for="name">Twoje imię (*):</label><input type="text" value="" class="input-text" id="name" name="name" /></div>
  5. <div class="field span8"><label for="email">Adres e-mail (*):</label><input type="text" value="" class="input-text" id="email" name="email" /></div>
  6. <div class="field span8"><label for="message">Wiadomość (*):</label><textarea class="input-textarea" id="message" name="message"></textarea></div>
  7. <div class="flied span8"><input type="submit" class="input-submit btn btn-red" value="Submit" /></div></div>
  8. </form>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 5)
!*!
post
Post #2





Grupa: Zarejestrowani
Postów: 4 298
Pomógł: 447
Dołączył: 16.11.2006

Ostrzeżenie: (0%)
-----


http://pl.wikibooks.org/wiki/PHP/Formularze
http://pl.wikibooks.org/wiki/PHP/Instrukcja_if
isset()

Ten post edytował !*! 28.12.2012, 11:57:04
Go to the top of the page
+Quote Post
-Kamyk89-
post
Post #3





Goście







Html ograniam, ale to już dla mnie czarna magia, bez znajomości PHP nawet Twoje linki dużo nie pomogą, ale dziękuje bardzo za chęci (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
!*!
post
Post #4





Grupa: Zarejestrowani
Postów: 4 298
Pomógł: 447
Dołączył: 16.11.2006

Ostrzeżenie: (0%)
-----


A przejrzałeś te linki dokładnie (łącznie z całym działem)? Jest tam nawet gotowiec.

Ten post edytował !*! 28.12.2012, 12:04:26
Go to the top of the page
+Quote Post
-Kamyk89-
post
Post #5





Goście







Tak przeglądałem, ale nigdzie nie widzę skryptu (PHP) , który by wyciągnął dane z mojego formularza w html`u i wysłał (IMG:style_emoticons/default/sad.gif)
Go to the top of the page
+Quote Post
!*!
post
Post #6





Grupa: Zarejestrowani
Postów: 4 298
Pomógł: 447
Dołączył: 16.11.2006

Ostrzeżenie: (0%)
-----


Dziwne... http://pl.wikibooks.org/wiki/PHP/Wysyłanie_e-maili połącz to z tym wyżej

  1. // sendmail.php
  2. if(isset($_POST['submit']))
  3. {
  4. echo 'wysyłam mail?';
  5. mail() //...
  6. }

Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 15:35