diff --git a/login/sign_up.html b/login/sign_up.html index 791bf2e0ac12fafbfa4dca61093bac82f8d3196d..cdc13cecdf026a4e4abe929116a61fbd6483d38a 100755 --- a/login/sign_up.html +++ b/login/sign_up.html @@ -24,13 +24,9 @@ <input type="Password" name="confirm_password"><br/> Phone number* <input type="text" name="user_phone"><br/> - - <input type="checkbox" id="chkbx_driver" name="is_driver" value="true" style="display: inline-flex; width: 20px"> - <label for="chkbx_driver" style="display: inline-flex;">Sign me up as a driver</label> - + <input type="checkbox" name="is_driver" value="true" style="width: 20px"> + <label for="chkbx_driver">Sign me up as a driver</label> <input type="submit" value="REGISTER"> - <!-- <input type="button" value="Sign me up as driver" id="signAs_driver" style="width : 40%" onclick= "driver_signup();"><label id="driversign_status"><br></label> - <input type="text" name="is_driver" value="No" style="display:none"> --> </form> <p><br>* Required field</p> </div> diff --git a/login/sign_up.php b/login/sign_up.php index 2ee9ff3cdd6fbfc98cf916564d876482aec107d3..fc240892cafd089e82e4797840e70f2cbfc1cd4e 100644 --- a/login/sign_up.php +++ b/login/sign_up.php @@ -14,7 +14,7 @@ $password = $_POST['user_password']; $phone = $_POST['user_phone']; - if($_POST['is_driver'] == "Yes") + if(isset($_POST['is_driver'])) { $status = 'driver'; } diff --git a/order/order.php b/order/order.php index d0ff404f5c2af8b92753bdfe486619248cb05828..fd7af2c6fad42de77261b3b05c58fa869e94311e 100644 --- a/order/order.php +++ b/order/order.php @@ -1,4 +1,3 @@ -<?php if (!isset($_SESSION['user'])) die("<br /><br />You must be logged in to view this page");?> <!DOCTYPE html> <html> <head>