Demo-Sites:

Source-Code: /secapp/readonly/index.php

<?php
include "../header.php";
include 
"../menu.php";
?>

<div id="content">
<h2>Demo-Formular (ReadOnly Form Field "PersonenTyp")</h2>
<div class="articles">

<?php 
 
if (!isset($_REQUEST['action'])) 
    { 
?>
    <form  action="" method="post" 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="PersonenTyp">Personen-Typ:</label>
    <input name="PersonenTyp" type="text" readonly="readonly" value="Student" size="30"/><br/>

    <label for="Senden">&nbsp;</label>
    <input type="submit" name="Senden" value="absenden"/>
    </form>

<?php 
    
} else { 
?>
    Folgende HTTP POST Parameter wurden empfangen:<br/>&nbsp;<br/><pre>
    <?php print_r($_POST); ?>
    </pre><br/><a href="<?php print(dirname($_SERVER['SCRIPT_NAME'])); ?>">zur&uuml;ck</a>

<?php 
    

?>
</div>
</div>

<?php
include "../footer.php";
?>