<?php /*====== function: complain_and_exit : string -> void purpose: expects a string saying what should have been entered that wasn't, and responds with a complaint screen making that complaint, and destroying the current session and giving a convenient hypertext link so the user can try again last modified: 2025-04-21 =====*/ function complain_and_exit($missing_info_type) { session_destroy(); ?> <h2> Need to enter a <?= $missing_info_type ?>... RUN AWAY!!! </h2> <p> <a href="<?= htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) ?>"> Start over </p> <footer> <hr /> <p> Validate by pasting .xhtml copy's URL into<br /> <a href="https://validator.w3.org/nu"> https://validator.w3.org/nu </a> or <a href="https://html5.validator.nu/"> https://html5.validator.nu/ </a> </p> </footer> </body> </html> <?php exit; } ?>