Michael Kohler
By: a guest | Jul 22nd, 2010 | Syntax:
HTML | Size: 0.75 KB | Hits: 51 | Expires: Never
index.php
--------------------------------------------------------------------------------------------------
<html>
<body>
<!-- FORMULAR -->
<a href="index.php?test=true">Link</a><br />
----------------------------------- <br /><br /><br />
<?php
if ($_GET['test'] == "true") {
echo "<form action=\"index2.php\" method=\"POST\">";
echo '<input type="text" id="testinput" value="testvalue" />';
echo '<input type="submit" value="bla" />';
echo '</form>';
}
?>
</body>
</html>
------------------------------------------------------------------------------------------------------
index2.php
<html>
<body>
<?php
echo "THERE SHOULD BE SOMETHING THERE: ".$_POST['testinput'];
?>
</body>
</html>