-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReg1.php
More file actions
64 lines (45 loc) · 1.13 KB
/
Reg1.php
File metadata and controls
64 lines (45 loc) · 1.13 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
<?php
if(isset($_POST['submit'])){
if($_POST['nam2']==""){
$error_msg['nam2']= " *Name is required";
}
}
?>
<html>
<body>
<table>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
<tr>
<td><h1>Name: </h1></td>
<td><input type ="text" name="nam2"></td>
<td>
<?php
if (isset($error_msg['nam2'])){
echo "<div class='error'>".$error_msg['nam2']."</div>";
}
?><br>
</td>
</tr>
<tr>
<td><h1>Email:</h1></td>
<td><input type="text" name="email1"></td>
<td><h1>V2</h1></td>
</tr>
<tr>
<td><h1>Phone:</h1></td>
<td><input type="text" name="phone1"></td>
<td><h1>V3</h1></td>
</tr>
<tr>
<td><h1>Gender:</h1></td>
<td><input type="radio" name="gender1"></td>
<td><h1>V4</h1></td>
</tr>
<tr>
<td>>>>>>>>>>>>>>>>>>>>>></td>
<td><input type="submit" name="submit" value="Submit"></td>
<td><<<<<<<<<<<<<<<<<<<<<</td>
</tr>
</table>
</body>
</html>