-
Notifications
You must be signed in to change notification settings - Fork 0
/
addreview.php
57 lines (46 loc) Β· 1.57 KB
/
addreview.php
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
<?php
$page_title = "Prutor.ai";
require_once ('includes/header.php');
require_once('includes/database.php');
$movie_id = $_GET['id'];
?>
<div class="container wrapper">
<ul class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li><a href="movies.php">Movies</a></li>
<li class="active">Adding Reviews</li>
</ul>
<h1 class="text-center">Add Review</h1>
<div class="row">
<div class="col-xs-6 col-xs-offset-2">
<form action="createreview.php" method="get" class="form-horizontal" role="form">
<input type="hidden" name="movie_id" value="<?php echo $movie_id; ?>"/>
<div class="form-group">
<label class="col-sm-3 control-label text-right" for="addRating">Add Rating</label>
<div class="col-sm-9">
<select class="form-control"name="review_rating" id="addRating" required>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label text-right" for="movieSearch">Review Text</label>
<div class="col-sm-9">
<textarea name="review_content" placeholder="Write Review" id="addReview" class="form-control"></textarea>
</div>
</div>
<div class="col-sm-3 col-sm-offset-3">
<button type="submit" class="btn btn-primary">Add!</button>
</div>
</form>
</div>
</div>
</div>
<?php
// close the connection.
$conn->close();
include_once('includes/footer.php');