-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpdateTrip.php
More file actions
89 lines (64 loc) · 3.1 KB
/
Copy pathUpdateTrip.php
File metadata and controls
89 lines (64 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<style><?php include 'Home.css'; ?></style>
<title>Update Trip</title>
</head>
<body>
<?php
$id = $_GET['id'];
$locationid = $_GET['locationid'];
$usrid = $_GET['usrid'];
$_SESSION["id"] = $id;
$_SESSION["locationid"] = $locationid;
$_SESSION["usrid"] = $usrid;
?>
<h1 class="logo">Update Trip</h1>
<div id = "frm1" class="formReg">
<div id = "frm1" div class="container">
<form action="updateTripName.php" method="post">
<label for="name"> <b> Trip Name: </b></label>
<input type="text" name="tripname" id="service" placeholder="Enter Name">
<label for="rating"> <b> Rating: </b></label>
<input type="text" name="rating" id="service" placeholder="Enter Rating">
<label for="cost"> <b> Cost: </b></label>
<input type="text" name="cost" id="service" placeholder="Enter Cost">
<button type="submit"> Save Updated Trip Name </button>
</form>
</div>
<h1 class="logo">Save Updated Location</h1>
<div id = "frm1" div class="container">
<form action="updateTripLocation.php" method="post">
<label for="city"> <b> City: </b> </label>
<input type="text" name="city" id="service" placeholder="Enter City">
<label for="state"> <b> State: </b> </label>
<input type="text" name="state" id="service" placeholder="Enter State">
<label for="country"> <b> Country: </b> </label>
<input type="text" name="country" id="service" placeholder="Enter Country">
<label for="date"> <b> Date: </b> </label>
<input type="text" name="date" id="service" placeholder="Enter Date (yyyy-mm-dd)">
<button type="submit"> Save Updated Location to my Trip </button>
</form>
</div>
<h1 class="logo">Save Updated Information</h1>
<div id = "frm1" div class="container">
<form action="updateTripInfo.php" method="post">
<label for="lodging"> <b> Lodging: </b> </label>
<input type="text" name="lodging" id="service" placeholder="Enter lodging (can be left empty)">
<!-- <label for="food"> <b> Food: </b> </label>
<input type="text" name="food" id="service" placeholder="Enter food (can be left empty)">
<label for="activity"> <b> Activity: </b> </label>
<input type="text" name="activity" id="service" placeholder="Enter activity (can be left empty)"> -->
<button type="submit"> Save Information to my Location </button>
</form>
</div>
<?php
$usrid = $_GET['usrid'];
echo "<a href='ViewTrips.php?usrid=" . $usrid . "' ><button> View my Trips </button></a>";
echo "<a href='Home.php?usrid=" . $usrid . "' ><button> Return to Home Page </button></a>";
?>
<!-- <button onclick="window.location.href = 'ViewTrips.php'"> View my Trips </button>
<button onclick="window.location.href = 'Home.php'"> Return to Home Page </button> -->
</body>
</html>