} } else { if (isset($_POST['save'])) { //submit came from request to save form data if (isset($_POST['table'])) { //do we have table information? switch ($_POST['table']) { //what table are we updating case "city": echo "<h2>Edit City Record</h2>"; displayCity(); saveCity(); break; case "country": echo "<h2>Edit Country Record</h2>"; displayCountry(); saveCountry(); break; case "countryLanguage": echo "<h2>Edit Country Language Record</h2>"; displayCountryLanguage(); saveCountryLanguage(); break; default: //Failed fail(); break; } } } else { if (isset($_POST['delete'])) {
<input require="true" nospecial="true" label="city_label" id="register_input" name="city" type="text" size="25" maxlength="15" value="<?php echo $_SESSION[CITY]; ?> "> </div> </td> </tr> <tr> <td class="even"><span id="country_label"><?php echo $webui_country; ?> *</span></td> <td class="even"> <?php echo displayCountry(); ?> </td> </tr> <tr> <td class="odd"><span id="dob_label"><?php echo $webui_date_of_birth; ?> *</span></td> <td class="odd"> <?php echo displayDOB(); ?> </td> </tr>