Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['send'])){
- if(isset($_POST['email']) != ""){
- if(isset($_POST['Topic']) != ""){
- if(isset($_POST['text']) != ""){
- $comment = $_POST['text'];
- $email = $_POST['email'];
- $Topic = $_POST['Topic'];
- mail($email, $Topic, $comment);
- }
- }
- }
- }
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>MAIL</title>
- </head>
- <body>
- <form action = "mail.php" method = "post">
- <input type = "text" name = "Topic">
- <input type = "text" name = "text" required = "required">
- <input type = "email" name = "email" required>
- <input type = "submit" name = "send">
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment