Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]Formularz, HELP!
Pat1
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 13.10.2007

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


Mam problem chce zrobic zeby przysylalo mi formularz na email... Email przychodzi ale jest pusty sadsmiley02.gif Prosze help me! Co mam zrobic zeby dane z formularza byly widoczne w emailu ?

to jest plik formularz.html
  1. <title>Formularz</title>
  2. </head>
  3. <form action="send.php" method="post">
  4. <input type="text" name="nick" value="nick" /><br />
  5. <br />
  6. <textarea name="tresc" id="tresc" >Tresc</textarea>
  7. <br />
  8. <br />
  9. <input type="submit" name="Wyslij" value="Wyslij" />
  10. <input type="reset" name="Kasuj" value="Kasuj" />
  11. </form>
  12. </body>
  13. </html>


A to jest plik send.php
  1. <?php mail("xxx@yahoo.com",'$_POST["mail"],'
  2. ?: '.$_POST["cos tam"].'
  3. Adres: '.$_POST["adres"].'
  4. World: '.$_POST["swiat"].'','From: '.$_POST["ha"].'')
  5. ?>


Ten post edytował Pat1 13.10.2007, 14:01:45
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
powker1
post
Post #2





Grupa: Zarejestrowani
Postów: 59
Pomógł: 0
Dołączył: 16.05.2005
Skąd: 3Miasto

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


pokaż kod winksmiley.jpg
Go to the top of the page
+Quote Post
Cysiaczek
post
Post #3





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Popraw proszę tytuł topiku na zgodny z zasadami forum Przedszkole

Jak kolega wyżej napisał - pokaż kod, bo tu nie Hogwart.

Pozdrawiam.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
Pat1
post
Post #4





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 13.10.2007

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


Dobra juz wstawilem wszystkie kody pomurzcie plx tongue.gif
Go to the top of the page
+Quote Post
PawelC
post
Post #5





Grupa: Zarejestrowani
Postów: 1 173
Pomógł: 121
Dołączył: 24.09.2007
Skąd: Toruń

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


Kod
<?php mail("xxx@yahoo.com",'$_POST["mail"],'
?: '.$_POST["cos tam"].'
Adres: '.$_POST["adres"].'
World: '.$_POST["swiat"].'','From: '.$_POST["ha"].'')
?>

Co to za zmienne, adres, swiat etc?? Gdzie masz zmienna nick, tresc bo takie nazwy dałeś w polu name formularza??
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: 20.08.2025 - 08:06