diff --git a/controller/orderController.php b/controller/orderController.php index 77e0c4bf236177ddb6a3d91291e27e6389177cdc..17ecd07b3d40d83e2605b87e8b80f0f149151015 100644 --- a/controller/orderController.php +++ b/controller/orderController.php @@ -80,5 +80,5 @@ if(isset($_POST['pickup'])){ $comment = $_POST['comment']; $transaction = new Order(); $transaction->setTransaction($userId, $driverId, $pickup, $destination, $date, $rating, $comment); - header('Location: ../view/dashboard.php?id='.$userId); + header('Location: ../view/order.php?id='.$userId); } diff --git a/view/edit-profile.php b/view/edit-profile.php index 2e4783cca5d7420b49f6509b85dccd1f56d22d30..aa0ef86f943a825b9ff7cebdf6b0358cc631b62b 100644 --- a/view/edit-profile.php +++ b/view/edit-profile.php @@ -46,7 +46,7 @@ </div> <div> <div> - <a class="back" href="dashboard.php?id=<?php echo $_GET['id'];?>">BACK</a> + <a class="back" href="profile.php?id=<?php echo $_GET['id'];?>">BACK</a> <input type="submit" value="SAVE" class="save" name="submit"> </div> </div> diff --git a/view/index.php b/view/index.php index 2a45e490e0969206ab14608e6409f499c5bb02b9..dd4496a2ee12b55001f963e3370491fad23825ee 100644 --- a/view/index.php +++ b/view/index.php @@ -7,9 +7,9 @@ $result = $result->fetch_assoc(); if($count == 1) { if ($result['isDriver']) { - header("location:dashboard.php?id=" . $result["id"]); + header("Location: profile.php?id=" . $result["id"]); } else { - header("location:dashboard.php?id=" . $result["id"]); + header("Location: order.php?id=" . $result["id"]); } } else { echo "<script>alert('Username dan/atau password yang anda masukkan salah.')</script>";