<?php /*--- function: make_three_value_form purpose: expects nothing, returns nothing, and outputs in its response a form allowing a user to enter a color, a flavor, and a song by: Sharon Tuttle last modified: 2024-04-23 ---*/ function make_three_value_form() { ?> <h1> JavaScript form validation example </h1> <form action="<?= htmlentities($_SERVER['PHP_SELF'], ENT_QUOTES) ?>" method="post" id="valueForm"> <fieldset> <legend> Enter values for at least TWO of these: </legend> <label for="color"> Enter a color: </label> <input type="text" name="color" id="color" /> <label for="flavor"> Enter a flavor: </label> <input type="text" name="flavor" id="flavor" /> <label for="song"> Enter a song: </label> <input type="text" name="song" id="song" /> <div class="sub_button"> <input type="submit" value="submit values" /> </div> </fieldset> </form> <?php } ?>