I am creating a data entry form with a drop-down list of locations from which to choose. I have a checkbox next to "Please add my location to the list," in case the desired location is not on the list.
I would like the fields for adding the new location to be visible only when someone checks the box. So far nothing happens when they check the box - the fields do not show up. What am I missing? Thanks, e
Code:<?php if(isset($_POST['addnewloc'])) { ?> <div id="newloc"> <p><label for="location">New Location:</label><input type="text" name="location" size="60"></p> <p><label for="address">Address:</label><input type="text" name="address" size="40"></p> <p><label for="city">City:</label><input type="text" name="city" size="40"></p> <p><label for="zip">Zip Code:</label><input type="text" name="zip" size="12"></p> </div> <?php } ?>




Reply With Quote

Bookmarks