Advertisement
Guest User

Untitled

a guest
Jun 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. $variable = '';
  3.  
  4. if ( isset( $_POST['submit'] ) ) {
  5. $variable = $_POST[ 'name' ];
  6. }
  7. ?>
  8.  
  9. <html>
  10. <head></head>
  11. <body>
  12. <span>your name is: <?php echo $variable; ?></span>
  13.  
  14. <form method="POST" action="test2.php">
  15. <input type="text" name="name" value="">
  16. <input type="submit" name="submit" value="submit">
  17. </form>
  18.  
  19. </body>
  20. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement