Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 17th, 2013  |  syntax: None  |  size: 0.46 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <form action="" method="post">
  2.     <input type="text" id="address" name="address" placeholder="Enter your zip code" style="width:250px;" />
  3.     <input type="submit" id="submit" value="Submit" />
  4. </form>
  5.        
  6. <?php
  7.     $textboxValue = $_POST['address'];
  8.     echo $textboxValue;
  9. ?>
  10.        
  11. <?php
  12.     if(isset($_POST['submit'])){
  13.         $textboxValue = $_POST['address'];
  14.         echo $textboxValue;
  15.     }
  16. ?>
  17.        
  18. <input type="submit" name="submit" id="submit" value="Submit" />