-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess_basic.php
57 lines (30 loc) · 872 Bytes
/
process_basic.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
<?php
session_start();
include_once('config.php');
// Data retreived begins here
$uname=$_POST['name_user'];
$sex=$_POST['gender'];
$type=$_POST['acc_type'];
$email=$_POST['useremail'];
//echo $email;
$password=$_POST['pass1'];
//$hash = password_hash($password, PASSWORD_DEFAULT);
//echo $password;
$query1="INSERT INTO mst_user (name_user,gender,account_type,email,login_pass) VALUES ('$uname','$sex','$type','$email','$password')";
$result1 = mysqli_query($db1,$query1) ;
if(!$result1){
echo ("Can't Register,The user email already exist !!");
}
else{
$_SESSION['user_id'] = mysqli_insert_id($db1);
if($type==="j"){
header('location: jobseeker/register_user.php?msg=registered');
}
else if($type==="e"){
header('location:employer/register_emp.php?msg=registered');
}
else{
echo "Select Account Type First!!";
}
}
?>