Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Post Request Example</title>
- </head>
- <body>
- <form method="POST">
- Name: <input type="text" name="name"><br>
- E-mail: <input type="text" name="email"><br>
- <input type="submit" name="submit" value="Log In">
- </form>
- <?php
- if (isset($_POST['submit'])) {
- $name = $_POST['name'];
- $email = $_POST['email'];
- echo 'Welcome, ' . htmlentities($name) . '!<br/>';
- echo 'Your email address is: ' . htmlentities($email);
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement