1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<?php
if (count($HTTP_GET_VARS) > 0) {
$_GET = $HTTP_GET_VARS;
}
?><html>
<head><title>Test of form self submission</title></head>
<body>
<form>
<input type="hidden" name="secret" value="Wrong form">
</form>
<p>[<?php print $_GET['visible']; ?>]</p>
<p>[<?php print $_GET['secret']; ?>]</p>
<p>[<?php print $_GET['again']; ?>]</p>
<form>
<input type="text" name="visible">
<input type="hidden" name="secret" value="Submitted">
<input type="submit" name="again">
</form>
<!-- Bad form closing tag --></form>
</body>
</html>
|