-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhhhh
30 lines (23 loc) · 821 Bytes
/
hhhh
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
<?php
if(isset($_SESSION['loggedin']) && $_SESSION['loggedin']==true){
echo'
<div class="container">
<h1 class="py-2">Post a Comment</h1>
<form action=" '. $_SERVER["REQUEST_URI"] . ' " method="post">
<div class="mb-3">
<label for="exampleFormControlTextarea1" class="form-label">Type your comment</label>
<textarea class="form-control" id="comment" name="comment" rows="3"></textarea>
</div>
<button type="submit" class="btn btn-success">Post Comment</button>
</form>
</div>';
}
else{
echo '
<div class="container">
<h1 class="py-2">Start a Discussion</h1>
<p class="lead">You are not logged in. Please login to be able to start a Discussion</p>
</div>
';
}
?>