-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcoursesselected.php
48 lines (44 loc) · 1.41 KB
/
coursesselected.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
<html>
<head>
<meta content="width=device-width, initial-scale=1.0" name="viewport" >
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">Academic Administration Application</a>
</div>
</div>
</nav>
<?php
session_start();
$_SESSION['login']=false;
$u=$_GET['var2'];
require_once 'dbconnect.php';
$var1=$_GET['var1'];
$res=mysqli_query($con,"select * from courses where fid='$var1'");
echo $u;
?>
<form action='coursesregistered.php' method='get'>
<?php
while($name=mysqli_fetch_array($res))
{
$cnam=$name['cname'];
$cid=$name['cname'];
$fid=$name['fid'];
echo "<input type='checkbox' name='check_list[]' value='$cid,$fid,$u' ><label>$cnam</label><br>";
}
echo "<input type='submit' name='submit' value='submit'>";
?>
</form>
<script src="js/jquery-1.10.2.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>