echo '<option value="-1" selected="selected" style="text-align:center;" >Age</option>'; for ($i = 18; $i <= 100; $i++) { echo '<option value="' . $i . '" style="text-align:center;" >' . $i . '</option>'; } ?> </select> <span class="error" id="Ageerr"></span> </td> </tr> <tr> <td >Country:</td><td class="required" > <select id="Country" name="Country" > <?php if (!isset($_SESSION["ERROR"])) { selectmanager("Country", -1); } else { unset($_SESSION["ERROR"]); echo '<option value="-1" selected="selected" style="text-align:center;" >----------------Country----------------</option>'; } ?> </select> <span id="Countryerr" class="error"></span></td> </tr> <tr> <td >Gender:</td><td class="required"><label><input id="sex1" name="sex" value="0" type="Radio" />Male</label> <label><input id="sex2" name="sex" value="1" type="Radio"/>Female</label> <span class="error" id="Sexerr"></span></td> </tr> <tr><td></td><td><img src="Inc/CaptchaSecurityImages.php?width=100&height=40&characters=5" /></td><br /></tr>
<td>Phone:</td><td class="required"><input type="text" placeholder="Business Phone" id="Phone" name="Phone" size="25" maxlength="14" onkeyup="Phonein()" value="<?php if (isset($_SESSION["Phone"])) { echo $_SESSION["Phone"]; } ?> " /><span id="phoneerr" class="error"></span></td> </tr> <tr> <td>Business Type:</td><td class="required"> <select id="BusinessID" name="BusinessID" onchange="BusID()"> <?php if (!isset($_SESSION["ERROR"])) { if (isset($_SESSION["BusinessID"])) { selectmanager("Bus_Type", $_SESSION["BusinessID"]); } else { selectmanager("Bus_Type", -1); } } else { unset($_SESSION["ERROR"]); echo '<option value="-1" selected="selected" style="text-align:center;" >-----------Type of Buisness-----------</option>'; } ?> </select> <span id="BuissIDerr" class="error"></span> </td> </tr> <tr> <td>Description:</td><td><textarea id="Description" name="Description" cols="30" rows="10" onfocus="focusDesc()" onkeyup="Des()"><?php if (isset($_SESSION["Description"])) { echo $_SESSION["Description"];
<tr><td>Address:</td><td><input type="text" id="Address" name="Address" size="25" value="<?php echo $record["Address"]; ?> " onkeyup="Address()" /><span id="addrerr" class="error"></span></td></tr> <tr><td>Phone:</td><td><input type="text" id="Phone" name="Phone" size="25" value="<?php echo $record["Phone"]; ?> " onkeyup="Phone()" /><span id="phoneerr" class="error"></span></td></tr> <tr><td>Business Type:</td><td><select id="BusinessID" name="BusinessID" onchange="BusID()"> <?php if (!isset($_SESSION["ERROR"])) { if (isset($_SESSION["BusinessID"])) { selectmanager("Bus_Type", $_SESSION["BusinessID"]); } else { selectmanager("Bus_Type", $record["Business_Type"]); } } else { unset($_SESSION["ERROR"]); echo '<option value="-1" selected="selected" style="text-align:center;" >-----------Type of Buisness-----------</option>'; } ?> </select><span id="BuissIDerr" class="error"></span></td></tr> <tr><td> <input type="hidden" id="GeoX" name="GeoX" value="<?php echo $x; ?> " /></td> </tr> <tr> <td> <input type="hidden" id="GeoY" name="GeoY" value="<?php echo $y; ?>