Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $variable = '';
- if ( isset( $_POST['submit'] ) ) {
- $variable = $_POST[ 'name' ];
- }
- ?>
- <html>
- <head></head>
- <body>
- <span>your name is: <?php echo $variable; ?></span>
- <form method="POST" action="test2.php">
- <input type="text" name="name" value="">
- <input type="submit" name="submit" value="submit">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement