-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmyprofile.php
24 lines (24 loc) · 954 Bytes
/
myprofile.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
<?php
if(isset($_POST['username']) && isset($_POST['email']) && isset($_POST['password']) && isset($_POST['password_agn']) && isset($_POST['firstname']) && isset($_POST['lastname']) && isset($_POST['gender']) && isset($_POST['profession']))
{
$username=$_POST['username'];
$email=$_POST['email'];
$password=$_POST['password'];
$password_agn=$_POST['password_agn'];
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
$gender=$_POST['gender'];
$profession=$_POST['profession'];
if(!empty($username) && !empty($email) && !empty($password) && !empty($password_agn) && !empty($firstname) && !empty($lastname) && !empty($gender) && !empty($profession))
{
if($password!=$password_agn)
{
echo '<script type="text/javascript">alert("Please fiil in the details!")</script>';
}
}
else
{
echo '<script type="text/javascript">alert("Please fiil in the details!")</script>';
}
}
?>