Share Pastebin
Guest
Public paste!

Michael Kohler

By: a guest | Jul 22nd, 2010 | Syntax: HTML | Size: 0.75 KB | Hits: 51 | Expires: Never
Copy text to clipboard
  1. index.php
  2. --------------------------------------------------------------------------------------------------
  3.  
  4.  
  5.  
  6. <html>
  7. <body>
  8.  
  9. <!-- FORMULAR -->
  10. <a href="index.php?test=true">Link</a><br />
  11.  
  12. ----------------------------------- <br /><br /><br />
  13.  
  14. <?php
  15.  if ($_GET['test'] == "true") {
  16.    echo "<form action=\"index2.php\" method=\"POST\">";
  17.     echo '<input type="text" id="testinput" value="testvalue" />';
  18.     echo '<input type="submit" value="bla" />';
  19.     echo '</form>';
  20.   }
  21. ?>
  22.  
  23. </body>
  24. </html>
  25.  
  26.  
  27.  
  28.  
  29. ------------------------------------------------------------------------------------------------------
  30. index2.php
  31.  
  32.  
  33.  
  34. <html>
  35. <body>
  36.  
  37. <?php
  38.  echo "THERE SHOULD BE SOMETHING THERE: ".$_POST['testinput'];
  39. ?>
  40.  
  41. </body>
  42. </html>