Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> formularz wysyłający meila ze strony
moniqaaa
post
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 28.02.2009

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


Witam,
stworzyłam na stronie za pomoca dreamweavera formularz, jednak nie mam pojęcia o php i nie moge dac sobie z tym rady. Przeszukałam mnóstwo stron, próbowałam kombinować ale i tak meil nie dochodził a jak już doszedł to był pusty. Może ktoś mógłby napisać skrytp, który umożliwi mi wysłanie meila z tym konkretnym formularzem??

CODE
<form action="" name="form1" id="form1" onSubmit="MM_validateForm('textfield','','R','label','','R','label2','','RisEmail','textarea','','R');return document.MM_returnValue">
<table width="322" border="0" cellspacing="0" cellpadding="6">
<tr>
<td width="102" height="34" class="td_formularz"><label for="label">
<div align="right" class="td_form style1 style2">Imię</div>
</label></td>
<td width="220"><label for="textfield"></label>


<div align="left" class="td_form">
<input name="textfield" type="text" id="textfield" maxlength="20" />
</div></td>
</tr>
<tr>
<td height="32" class="td_formularz"><label for="label2">
<div align="right" class="style4">Nazwisko</div>
</label></td>

<td><label for="label"></label>

<div align="left" class="td_form">
<input name="textfield2" type="text"id="label" maxlength="30" />
</div></td>
</tr>
<tr>
<td height="31" class="td_formularz"><label for="label3">
<div align="right" class="style4">e-mail</div>

</label></td>
<td><label for="label2"></label>

<div align="left" class="td_form">
<input type="text" name="textfield3" id="label2" />
</div></td>
</tr>
<tr>
<td height="49" class="td_formularz"><label for="label3">
<div align="right" class="style4">Wiadomość</div>

</label></td>
<td><label for="textarea"></label>

<div align="left" class="td_form">
<textarea name="textarea" cols="25" rows="4" id="textarea"></textarea>
</div></td>
</tr>
<tr>


<tr>

<td height="38">&nbsp;</td>
<td>

<div align="left" class="td_form">
<input type="submit" name="Submit" value="Wyślij" />
</div></td>
</tr>
</table>
</form>


Z góry dziekuje snitch.gif
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 7)
skowron-line
post
Post #2





Grupa: Zarejestrowani
Postów: 4 340
Pomógł: 542
Dołączył: 15.01.2006
Skąd: Olsztyn/Warszawa

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


No okej ale gdzie jest skrypt do wysyłania maili questionmark.gif?
http://phpmailer.codeworxtech.com/ tu jest klasa do wysyłania maili w PHP są przykłady zobacz i w razie pytań pisz.


--------------------
I'm so fast that last night I turned off the light switch in my hotel room and was in bed before the room was dark - Muhammad Ali.
Peg jeżeli chcesz uprawiać sex to dzieci muszą wyjść, a jeżeli chcesz żeby był dobry ty też musisz wyjść - Al Bundy.

QueryBuilder, Mootools.net, bbcradio1::MistaJam
http://www.phpbench.com/
Go to the top of the page
+Quote Post
kosmowariat
post
Post #3





Grupa: Zarejestrowani
Postów: 235
Pomógł: 17
Dołączył: 18.07.2007
Skąd: Białystok

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


a co wspólnego ma to z programowaniem obiektowym ?
Go to the top of the page
+Quote Post
moniqaaa
post
Post #4





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 28.02.2009

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


jesli temat w złym miejscu to niech go przesunie administrator

ja sie na tym naprawde nie znam.... szukam konkretnej pomocy by ktos napisal taki skrypt. Ja stworzyłam formularz i na tym moja wiedza sie konczy sad.gif
Go to the top of the page
+Quote Post
phpion
post
Post #5





Grupa: Moderatorzy
Postów: 6 072
Pomógł: 861
Dołączył: 10.12.2003
Skąd: Dąbrowa Górnicza




Cytat(moniqaaa @ 28.02.2009, 14:30:27 ) *
szukam konkretnej pomocy by ktos napisal taki skrypt.

Giełda ofert / Poszukuję. Jeśli jednak chcesz sama powalczyć to zapoznaj się np. z mail. Masz tam przykładowe kody, dostosuj któryś do swoich potrzeb.

Ten post edytował phpion 28.02.2009, 12:35:44
Go to the top of the page
+Quote Post
moniqaaa
post
Post #6





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 28.02.2009

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


no i sie pomeczylam... email dochodzi, ale pusty smile.gif
Go to the top of the page
+Quote Post
Spawnm
post
Post #7





Grupa: Moderatorzy
Postów: 4 069
Pomógł: 497
Dołączył: 11.05.2007
Skąd: Warszawa




pokarz kod to coś wymyślimy smile.gif
Go to the top of the page
+Quote Post
moniqaaa
post
Post #8





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 28.02.2009

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


cwiczylam na czystej stronie, formularz sie wysylal piknie z calymi danymi, ale kiedy go wrzucilam na strone na ktorej ma byc nagle emaile przychodza puste sad.gif

formularz:
  1. <form action="formularz.php" name="form1" id="form1" onSubmit="MM_validateForm('textfield','','R','label','','R','label2','','RisEmail','textarea','','R');return document.MM_returnValue">
  2.        <table width="322" border="0" cellspacing="0" cellpadding="6">
  3.          <tr>
  4.            <td width="102" height="34" class="td_formularz"><label for="label">
  5.                <div align="right" class="td_form style1 style2">Imię</div>
  6.              </label></td>
  7.            <td width="220"><label for="textfield"></label>
  8.  
  9.                
  10.              <div align="left" class="td_form">
  11.                
  12.                <INPUT TYPE="text" NAME="imie"  value="" maxlength="20">
  13.              </div></td>
  14.          </tr>
  15.          <tr>
  16.            <td height="32" class="td_formularz"><label for="label2">
  17.                <div align="right" class="style4">Nazwisko</div>
  18.              </label></td>
  19.  
  20.            <td><label for="label"></label>
  21.                
  22.              <div align="left" class="td_form">
  23.              <INPUT TYPE="text" NAME="nazwisko"  value="" maxlength="30">
  24.                
  25.              </div></td>
  26.          </tr>
  27.          <tr>
  28.            <td height="31" class="td_formularz"><label for="label3">
  29.                <div align="right" class="style4">e-mail</div>
  30.  
  31.              </label></td>
  32.            <td><label for="label2"></label>
  33.                
  34.              <div align="left" class="td_form">
  35.              <INPUT TYPE="text" NAME="email"  value="">
  36.              
  37.              </div></td>
  38.          </tr>
  39.          <tr>
  40.            <td height="49" class="td_formularz"><label for="label3">
  41.                <div align="right" class="style4">Wiadomość</div>
  42.  
  43.              </label></td>
  44.            <td><label for="textarea"></label>
  45.                
  46.                  <div align="left" class="td_form">
  47.                  <INPUT TYPE="text" NAME="wiadomosc" cols="25" rows="4" value="">
  48.                            
  49.              </div></td>
  50.          </tr>
  51.          <tr>
  52.          
  53.              
  54.          
  55.  
  56.            <td height="38">&nbsp;</td>
  57.            <td>
  58.              
  59.              <div align="left" class="td_form">
  60.                <input type="submit" name="Submit" value="Wyślij" />
  61.              </div></td>
  62.          </tr>
  63.        </table>
  64.      </form>
  65.  
  66.  
  67.  
  68. formularz.php
  69. <?php
  70. $imie=$_POST['imie'];
  71. $nazwisko=$_POST['nazwisko'];
  72.  
  73. $email=$_POST['email'];
  74. $wiadomosc=$_POST['wiadomosc'];
  75.  
  76.  
  77. $data=strftime(" %A, %d  %B  %Y");
  78. $nadawca_imie = "[Zgloszenie ze strony]";
  79. $send_email ="moniqaaa90@wp.pl";
  80. $temat = "Zgloszenie ze strony";
  81. $headers = "MIME-Version: 1.0r\n";
  82. $headers .= "Content-type: text/html; charset=iso-8859-2r\n";
  83. $headers .=  "From: $nadawca_imie <$email>r\n";
  84. $body_mail = "<table width=600 border=0 cellpadding=1 cellspacing=2 align=center style=\"font-family: Verdana; font-size: 10px;\">
  85. <tr>
  86. <td colspan=2 align=center><b><u>".$temat."</u></b></td>
  87. </tr>
  88. <tr>
  89. <td colspan=2 align=center> </td>
  90. </tr>
  91. <tr>
  92. <td width=166 align=right>Imie:  </td>
  93. <td width=424><div align=\"justify\"><b>".$imie."</b></div></td>
  94. </tr>
  95. <tr>
  96. <td width=166 align=right>Nazwisko:  </td>
  97. <td width=424><div align=\"justify\"><b>".$nazwisko."</b></div></td>
  98. </tr>
  99.  
  100. <tr>
  101. <td width=166 align=right>Mail zglaszajacego:  </td>
  102. <td width=424><div align=\"justify\"><b>".$email."</b></div></td>
  103. </tr>
  104. <tr>
  105. <td align=right valign=top>Wiadomosc:  </td>
  106. <td align=left valign=top> <div align=\"justify\"><b>".$wiadomosc."</b></div></td>
  107. </tr>
  108.  
  109.  
  110.  
  111. <tr>
  112. <td colspan=2 align=center> </td>
  113. </tr>
  114. <tr>
  115. <td colspan=2 align=center>Data przeslania zgloszenia: $data</td>
  116. </tr>
  117. </table>"
  118.  
  119.  
  120. mail($send_email,$temat,$body_mail,$headers);
  121.  
  122. print "<br><center>Zgloszenie zostalo wyslane</center>";
  123. print "<br><center>skontaktujemy sie z Toba wkrótce</center>";
  124. ?>


nie ja jestem autorka tego skrytpu, probowalam go przerobic dla swoich potrzeb.


// moniqaaa, Ty niesforny smyku, proszę pamiętać o BBcode jak wklejsza próbkę kodu
// ayeo


a konkretnie email przychodzi w takiej postaci:

Zgloszenie ze strony
Imie:
Nazwisko:
Mail zglaszajacego:
Wiadomosc:

Data przeslania zgloszenia: Saturday, 28 February 2009

masakraaaaaaaa z tym była
ale działa smile.gif
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 22.08.2025 - 11:02