daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top