-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjoin_class.php
59 lines (52 loc) · 2.24 KB
/
join_class.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
58
59
<?php
include ("inc/header.php");
?>
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['join_class'])){
$joinClass = $class -> joinClass($_POST);
}
?>
<section id="register" class="service2 sections lightbg">
<div class="container">
<div class="row">
<div class="main_service2">
<div class="head_title text-center">
<h2>Join Classroom</h2>
<p>You can join any classroom by giving class code.</p>
<?php
if(isset($joinClass)){
echo $joinClass;
}
?>
</div>
<div class="contact_content">
<form action="" method="post" id="formid">
<div class="col-md-3">
</div>
<div class="col-md-6">
<div class="single_left_contact">
<div class="form-group">
<input type="hidden" class="form-control" name="userid" value="<?php echo Session::get('id') ;?>">
</div>
<div class="form-group">
<input type="text" class="form-control" name="name" value="<?php echo Session::get('fname') ;?>">
</div>
<div class="form-group">
<input type="text" class="form-control" name="classcode" placeholder="class code" required="">
</div>
<div class="center-content">
<input type="submit" name="join_class" value="Submit" class="btn btn-default">
</div>
</div>
</div>
<div class="col-md-3">
</div>
</form>
</div>
</div>
</div>
</div>
</section><!-- End of Contact Section -->
<?php
include ("inc/footer.php");
?>