/media/sda-magnetic/david/Dokumente-16-2024-08-01/informatikUmathematik/math20240801before/form20240614.php


<?php
session_start ();
?>

<form action="./form20240614.php" method="POST">
<input type="text" name="form20240614a">
<input type="submit">
</form>

<?php
echo session_id () . "<br>\n";

setcookie ("form20240614c", "Hallo Welt", time () + 1200);

echo htmlentites ($_POST ["form20240614a"]) . "<br>\n";
echo htmlentities ($_COOKIE ["form20240614b"]) . "<br>\n";
echo htmlentities ($_COOKIE ["form20240614c"]) . "<br>\n";

session_destroy ();
?>