Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][PHP]Email PHP, wysylanie plikow na @
lokokosi
post
Post #1





Grupa: Zarejestrowani
Postów: 10
Pomógł: 0
Dołączył: 12.10.2010

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


Hej
Chce zrobic okno na stornie ,za posrednictwem ktorej mozna napisac domnie email oraz dodac plik graficzny .plik php wysyla wiadomosc ale nie plik graficzny, jak ma wygladac plik *.php zeby forma wysylala i tresc i plik (IMG:style_emoticons/default/questionmark.gif) ? prosze o pomoc (IMG:style_emoticons/default/party.gif)

to jest forma html:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Untitled Document</title>
  5. </head>
  6.  
  7.  
  8.  
  9. <form action="/sendmail.php" method="post" name="faq" onSubmit ="return checkData()" >
  10. <input name="Referer" type="hidden" value="FAQ" />
  11. <p>Firstname:<br /><input name="Fname" type="text" /></p>
  12. <p>Lastname:<br /><input name="Lname" type="text" /></p>
  13. <p>Email:<br /><input name="Email" type="text" /></p>
  14. <p>Title of question/answer:<br /><input name="Title" type="text" /></p>
  15. <p>Question:<br />
  16. <textarea name="Message" rows="15" cols="20"></textarea>
  17. </p>
  18.  
  19.  
  20.  
  21.  
  22. <p>
  23. <input name="clear" type="reset" id="clear" value="clear" />
  24. <input name="submit" type="submit" id="submit" value="submit" />
  25. </p>
  26. </form>
  27.  
  28. <form enctype="multipart/form-data" action="uploader.php" method="POST">
  29. <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
  30. Choose a file to upload: <input name="uploadedfile" type="file" accept="image/jpeg,image/gif,image/jpg" /><br />
  31. <input type="submit" value="Upload File" />
  32. </form>
  33.  
  34.  
  35.  
  36. </body>
  37. </html>
  38.  
  39.  
  40.  
  41.  
  42.  






PHP:

  1.  
  2.  
  3. <?php
  4.  
  5. $Fname = $_REQUEST['Fname'] ;
  6. $Lname = $_REQUEST['Lname'] ;
  7. $Email = $_REQUEST['Email'] ;
  8. $Referer = $_REQUEST['Referer'] ;
  9. $Title = $_REQUEST['Title'] ;
  10. $Message = $_REQUEST['Message'] ;
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. mail( "mojemail@gmail.com", "Submit question form: $Referer: $Title",
  19. $Message, "From: $Fname $Lname <$Email>" );
  20. header( "Location: <a href="http://www.moja-strona.com/index.html&quot;" target="_blank">http://www.moja-strona.com/index.html"</a> );
  21. ?>
  22.  
  23.  
  24.  


Potrafi mi ktos pomoc (IMG:style_emoticons/default/questionmark.gif) (IMG:style_emoticons/default/questionmark.gif) ?
Go to the top of the page
+Quote Post

Posty w temacie


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: 2.10.2025 - 19:48