-
Notifications
You must be signed in to change notification settings - Fork 0
/
somefile.php
63 lines (58 loc) · 2.03 KB
/
somefile.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
60
61
62
63
<?php
session_start();
if(isset($_SESSION['register'])){
$firstname= strip_tags($_POST['Firstname']);
$lastname= strip_tags($_POST['Lastname']);
$email= strip_tags($_POST['email']);
$pass= strip_tags($_POST['password']);
$confirmpass= strip_tags($_POST['confirm_password']);
$firstname= stripslashes($_POST['Firstname']);
$lastname= stripslashes($_POST['Lastname']);
$email= stripslashes($_POST['email']);
$pass= stripslashes($_POST['password']);
$confirmpass= stripslashes($_POST['confirm_password']);
/*$firstname= strip_tags($_POST['Firstname']);
$lastname= strip_tags($_POST['Lastname']);
$email= strip_tags($_POST['email']);
$pass= strip_tags($_POST['password']);
$confirmpass= strip_tags($_POST['confirm_password']);
*/
}
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="stylefile.css">
</head>
<body>
<?php
include "header.php" ;
?>
<h1 style="font-family: Times New Roman;">Registration Form</h1>
<div class="register">
<form class="register" action="login.html" method="post">
<div>
<label>Firstname:</label>
<input type="text" value="" placeholder="First Name" autofocus>
</div>
<br/><label>Lastname:</label>
<input type="text" value="" placeholder="Last Name" required />
<div>
<br/><label>Branch:</label>
<input type="text" value="" placeholder="Branch" required />
</div>
<br/><label>Year:</label>
<input type="text" value="" placeholder="Degree Year" required /><br/>
<br/><label>Email:</label>
<input type="text" value="" placeholder="Email-id:Example@gmail.com" required />
<br/><label>Password</label>
<input type="password" value="" placeholder="Password" required />
<input type="password" value="" placeholder="Confirm password" required />
<input type="file" name="profilepic" accept="image/*" required />
<br/><!--<img src="Images\shiva.jpg" height=50% alt="Image" /> -->
<!--<img src="<?_SESSION['profilepic'] ?>" width=50px alt="p"/>-->
<input type="submit" name="register" value="Register" placeholder="Submit">
</form>
</div>
</body>
</html>