><span class='width100'>Government</span> <input type='radio' name='employment' value='Private' <?php if ($result["member_id"] == 4) { $memberID = getMembership($result["philhealth_id"]); if ($memberID == 5) { echo "checked"; } } elseif ($result["member_id"] == 5) { echo "checked"; } ?> >Private <br /><span class='width200'><label>Lifetime</label></span> <input type='radio' name='lifetime' value='Lifetime' <?php if ($result["member_id"] == 4) { $memberID = getMembership($result["philhealth_id"]); if ($memberID == 13) { echo "checked"; } } elseif ($result["member_id"] == 13) { echo "checked"; } ?> >Lifetime </div> <div class='width750'> <br /><hr /><h4 class='center'>Obligated Services</h4><hr /> <br /> <span class='width350'><label>BP Measurement</label> <select name='bp'><option value='Hypertensive'>Hypertensive</option> <option value='Nonhypertensive'>Nonhypertensive</option></select></span>
?> <!DOCTYPE html> <html> <?php include "includes/mainhead.html"; include "includes/dbconnect.php"; include "includes/functions.php"; ?> <body> <?php $membership = getMembership($_SESSION['id']); if (strlen($membership) > 0) { if ($membership == 0) { if ($stmt = $mysqli->prepare("UPDATE test SET membership=2 WHERE id=?")) { $stmt->bind_param("d", $_SESSION['id']); $stmt->execute(); $stmt->close(); } echo "Your membership has been updated <br>"; } else { echo "You already have a membership<br>"; } } else { echo "You need to be logged in in order to sign up for a membership, if you do not have an account, you can regiser <a href='regiset.html'>here.</a>"; } ?>