-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadm_sub.php
More file actions
29 lines (24 loc) · 805 Bytes
/
adm_sub.php
File metadata and controls
29 lines (24 loc) · 805 Bytes
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
<?php
print_r($_POST);
include 'config.php';
include 'function.php';
$first_name=$_POST['first_name'];
$last_name=$_POST['last_name'];
$gender=$_POST['gender'];
$dob=$_POST['dob'];
$course=$_POST['course'];
$doa=$_POST['doa'];
$password=$_POST['password'];
$email=$_POST['email'];
$address2=$_POST['address2'];
$postcode=$_POST['postcode'];
$city=$_POST['city'];
$state=$_POST['state'];
$reg_no= 'R'.rand(001,1000);
$uploaddir = 'C:/xampp/htdocs/dbnw/images/uploads/';
$img= $_FILES['img']['name'];
$uploadfile = $uploaddir . basename($img);
$ds= move_uploaded_file($_FILES['img']['tmp_name'], $uploadfile);
//check the value existance in database
$call_function=admission($email,$reg_no,$first_name,$last_name,$gender,$dob,$email,$course,$doa,$password,$address2,$postcode,$city,$state,$img,$db);
?>