You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfixadmin/tests/simpletest/test/site/self_form.php

21 lines
662 B
PHP

<?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>