Source-Code: /secapp/get/index.php
<?php
include "../header.php";
include "../menu.php";
?>
<div id="content">
<h2>Demo-Formular (GET)</h2>
<div class="articles">
<?php
if (!isset($_REQUEST['action']))
{
?>
<form action="" method="get" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="action" value="submit"/>
<label for="Vorname">Vorname:</label>
<input name="Vorname" type="text" value="" size="30"/><br/>
<label for="Nachname">Nachname:</label>
<input name="Nachname" type="text" value="" size="30"/><br/>
<label for="Senden"> </label>
<input type="submit" name="Senden" value="absenden"/>
</form>
<?php
} else {
?>
Folgende HTTP GET Parameter wurden empfangen:<br/> <br/><pre>
<?php print_r($_GET); ?>
</pre><br/><a href="<?php print(dirname($_SERVER['SCRIPT_NAME'])); ?>">zurück</a>
<?php
}
?>
</div>
</div>
<?php
include "../footer.php";
?>