Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 6th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 14  |  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. Understanding Self Referencing forms
  2. <?php
  3. if (count($_POST)) {
  4. echo 'You have submitted the string: '.$_POST['string'];
  5. }
  6. ?>
  7. <form action="" method="post">
  8. <input type="text" name="string">
  9. <button type="submit">Submit!</button>
  10. </form>