<?php
session_start ();
?>
<FORM METHOD="GET" ACTION="./form1.php">
<INPUT TYPE="password" NAME="password1"></INPUT>
<INPUT TYPE="submit"></INPUT>
</FORM>
<?php
echo session_id () . "<br>\n";
setcookie ("Cookie31", "Dies ist ein Cookie", time () + 3600);
echo htmlentities ($_GET ["password1"]) . "<br>\n";
echo htmlentities ($_COOKIE ["Cookie31"]) . "<br>\n";
echo htmlentities ($_COOKIE ["Cookie31a"]) . "<br>\n";
?>