Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Hello</title>
- </head>
- <body>
- <div>
- <?php
- $username = htmlspecialchars($_POST['username']);
- if (!empty($username))
- echo "<div><p>Hello, $username!</p></div>\n";
- ?>
- </div>
- <div>
- <form method="POST" action="/forms/hello2.php">
- Name: <input type="text" name="username"/>
- <input type="submit" value="Send">
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment