Guest User

Untitled

a guest
Nov 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST['send'])){
  4. if(isset($_POST['email']) != ""){
  5. if(isset($_POST['Topic']) != ""){
  6. if(isset($_POST['text']) != ""){
  7. $comment = $_POST['text'];
  8. $email = $_POST['email'];
  9. $Topic = $_POST['Topic'];
  10.  
  11. mail($email, $Topic, $comment);
  12. }
  13. }
  14. }
  15. }
  16.  
  17. ?>
  18.  
  19.  
  20. <!DOCTYPE html>
  21. <html lang="en">
  22. <head>
  23. <meta charset="UTF-8">
  24. <title>MAIL</title>
  25. </head>
  26. <body>
  27. <form action = "mail.php" method = "post">
  28. <input type = "text" name = "Topic">
  29. <input type = "text" name = "text" required = "required">
  30. <input type = "email" name = "email" required>
  31. <input type = "submit" name = "send">
  32.  
  33. </form>
  34.  
  35. </body>
  36. </html>
Add Comment
Please, Sign In to add comment