-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuserProductFeedback.php
More file actions
69 lines (59 loc) · 1.77 KB
/
userProductFeedback.php
File metadata and controls
69 lines (59 loc) · 1.77 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
<?php
include( "sessionRedirector.php" );
include( "queryFunctions.php" );
$userid = $_SESSION[ "userid" ];
if ( isset( $_POST[ "btnupdate" ] ) ) {
if ( updateUserProductRating( $userid, $_POST[ "cbrating" ], $_POST[ "formcomment" ] ) ) {
header( "Location: userProductFeedback.php?status=feedbackUpdated" );
} else {
header( "Location: userProductFeedback.php?status=somethingWentWrong" );
}
}
include( "userDashboardHeader.php" );
?>
<div class="breadcrumbs">
<div class="col-sm-4">
<div class="page-header float-left">
<div class="page-title">
<?php
if (isset($_GET["status"])) {
//var_dump($_GET);
echo $_GET["status"];
}
?>
</div>
</div>
</div>
</div>
<div class="content mt-3">
<div class="col-lg-12">
<div class="card">
<div class="card-header"><strong>User Feedback</strong>
</div>
<div class="card-body card-block">
<form method="post" action="userProductFeedback.php">
<div class="form-group">
<div class="row form-group">
<div class="col-md-3">
<label for="vat">Product Ratings</label>
<select name="cbrating" id="activities" class="form-control">
<?php
for ( $i = 1; $i <= 10; $i++ ) {
echo( "<option value='" . $i . "'>" . $i . "</option>" );
}
?>
</select>
</div>
</div>
<label for="vat" class=" form-control-label">Any Reviews</label>
<input type="text" id="vat" placeholder="Enter your comments" name="formcomment" class="form-control col-lg-12">
<br>
<button id="payment-button" type="submit" name="btnupdate" class="btn btn-lg btn-info col-lg-2">Add/Update</button>
</div>
</form>
</div>
</div>
<!-- .content -->
</div>
</div>
<?php include( "userDashboardFooter.php" ); ?>