-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabc.php
More file actions
68 lines (68 loc) · 2.1 KB
/
abc.php
File metadata and controls
68 lines (68 loc) · 2.1 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
<?php
if(isset($_POST['submit'])){
if(isset($_POST['Name']) && isset($_POST['Email'])&&isset($_POST['Content'])&&isset($_POST['City'])&&isset($_POST['contact-number'])&&isset($_POST['intrest'])){
$Name=$_POST['Name'];
$Email=$_POST['Email'];
$Content=$_POST['Content'];
$City=$_POST['City'];
$contact_number=$_POST['contact-number'];
$intrest=$_POST['intrest'];
}
}
else{
$Name="none";
$Email="none";
$Content="none";
$City="none";
$contact_number="none";
$intrest="none";
}
?>
<html>
<head>
<title>hello everybody</title>
</head>
<body><h1>Student table</h1>
<form method="POST" action="abc.php">
Name <input type="text" name="Name" required="">
<br>
Email <input type="email" name="Email" required="">
<br>
Course <input type="text" name="Content" required="">
<br>
City <input type="text" name="City" required="">
<br>
Contact-Number <input type="text" name="contact-number" required="" maxlength="10">
<br>
Interest:
<br>
game <input type="checkbox" value="Volleyball" name="intrest">
<br>
song <input type="checkbox" value="music" name="intrest">
<br>
books <input type="checkbox" value="reading books" name="intrest">
<br>
games <input type="checkbox" value="indoor games" name="intrest"><br>
<br>
<input type="submit" value="submit" name="submit"><div style="align-self: center;">
<table border=1px; style = "border-collapse:collapse">
<tr>
<th>Name</th>
<th>Email</th>
<th>Course</th>
<th>City</th>
<th>Contact-Number</th>
<th>Intrest</th>
</tr>
<tr>
<td><?php echo "$Name" ?></td>
<td><?php echo "$Email" ?></td>
<td><?php echo "$Content" ?></td>
<td><?php echo "$City" ?></td>
<td><?php echo "$contact_number" ?></td>
<td><?php echo "$intrest" ?></td>
</tr>
</table></div>
</form>
</body>
</html>