|
Server IP : 86.38.243.193 / Your IP : 216.73.216.42 Web Server : LiteSpeed System : Linux in-mum-web1336.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64 User : u493057690 ( 493057690) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : ON Directory (0755) : /home/u493057690/domains/iasfindia.com/public_html/admin/../iasf-old/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include('includes/db-connection.php');
if (isset($_POST['save']))
{
$name = strtoupper($_POST['name']);
$f_name = strtoupper($_POST['f_name']);
$dob = $_POST['dob'];
$gender_id = $_POST['gender_id'];
$contact_no = $_POST['contact_no'];
$email = strtolower($_POST['email']);
$address = strtoupper($_POST['address']);
$pin = $_POST['pin'];
$aadhar_no = strtoupper($_POST['aadhar_no']);
$country_id = $_POST['country_id'];
$state = strtoupper($_POST['state']);
$district = strtoupper($_POST['district']);
$sport = strtoupper($_POST['sport']);
$age_group_id = $_POST['age_group_id'];
$team_name = strtoupper($_POST['team_name']);
$team_id = $_POST['team_id'];
$doc_id = $_POST['doc_id'];
if($_FILES['photo']['name'])
{
$strlower=strtolower($_FILES['photo']['name']);
$ext = pathinfo($strlower, PATHINFO_EXTENSION);
$date = date('dmy');
$time = date('his');
$dt = $date.''.$time;
$cons = 'P-';
$photo = $cons.''.$dt.'.'.$ext;
move_uploaded_file($_FILES['photo']['tmp_name'],"upload/".$photo);
}
if($_FILES['signature']['name'])
{
$strlower1=strtolower($_FILES['signature']['name']);
$ext1 = pathinfo($strlower1, PATHINFO_EXTENSION);
$date1 = date('dmy');
$time1 = date('his');
$dt1 = $date1.''.$time1;
$cons1 = 'S-';
$signature = $cons1.''.$dt1.'.'.$ext1;
move_uploaded_file($_FILES['signature']['tmp_name'],"upload/".$signature);
}
if($_FILES['document']['name'])
{
$strlower2=strtolower($_FILES['document']['name']);
$ext2 = pathinfo($strlower2, PATHINFO_EXTENSION);
$date2 = date('dmy');
$time2 = date('his');
$dt2 = $date2.''.$time2;
$cons2 = 'D-';
$document = $cons2.''.$dt2.'.'.$ext2;
move_uploaded_file($_FILES['document']['tmp_name'],"upload/".$document);
}
$apply_date = date('d-m-Y');
//$reg_no = 'IASF/'.date('Y').'/'.mt_rand(1000,9999);
mysqli_query($db,"INSERT INTO `tbl_registration` (name,f_name,dob,address,contact_no,email,state,district,country_id,sport,age_group_id,photo,signature,reg_date,team_name,team_id,doc_id,document,pin,aadhar_no,status,gender_id) values
('".$name."','".$f_name."','".$dob."','".$address."','".$contact_no."','".$email."','".$state."','".$district."','".$country_id."','".$sport."','".$age_group_id."','".$photo."','".$signature."','".$apply_date."','".$team_name."','".$team_id."','".$doc_id."','".$document."','".$pin."','".$aadhar_no."','0','".$gender_id."')");
//$message = 'Registration successful. We are verifying your document. \n You can download your I-Card after 08 To 12 hours. \n Note - कृपया रजिस्ट्रेशन नंबर - '.$user_id.' नोट करें।';
$message = 'Registration successful.';
echo "<script>alert(\"$message\")</script>";
echo '<script>window.location.href = "registration-form.php";</script>';
}
include('includes/header.php');
?>
<style>
.my-3 {
margin-top: 3rem !important;
margin-bottom: 1rem !important;
}
.form-control {
border-radius: 0;
border-color: #d2d6de;
margin-top: 15px;
}
label {
display: inline-block;
color: #333;
font-weight: 600;
margin-top: 15px;
}
input[type=submit] {
background: linear-gradient(to right, #ff6a00, #ee0979);
border: 0;
padding: 13px 50px;
color: #ffffff;
transition: 0.4s;
border-radius: 0;
}
</style>
<div class="event-heading" style="text-align: center;">
<h2><b>Player Registration Form</b></h2>
</div>
<div class="container mt-3 main-div" style="border-radius:10px;border:1px solid grey; background:white; margin-bottom: 20px;">
<div class="container">
<form method="post" enctype="multipart/form-data">
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label for="">Name :</label>
</div>
<div class="col-md-3">
<input type="text" name="name" id="name" class="form-control" placeholder="Name" autocomplete="off" required="true">
</div>
<div class="col-md-3">
<label for="gender">Father Name :</label>
</div>
<div class="col-md-3">
<input type="text" name="f_name" id="f_name" class="form-control" placeholder="Father Name" autocomplete="off" required="true">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label for="">Date of Birth :</label>
</div>
<div class="col-md-3">
<input type="date" name="dob" id="dob" placeholder="DD-MM-YYYY" class="form-control" autocomplete="off" required="true">
</div>
<div class="col-md-3">
<label for="">Gender :</label>
</div>
<div class="col-md-3">
<select name="gender_id" id="gender_id" class="form-control" required="true">
<option value="">Select Gender</option>
<?php
$query = mysqli_query($db, "SELECT id,name FROM `tbl_master` WHERE status='2'");
while($row = mysqli_fetch_assoc($query)){ ?>
<option value="<?php echo $row['id']; ?>"><?php echo $row['name']; ?></option>
<?php } ?> </select>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label for="">Mobile No. :</label>
</div>
<div class="col-md-3">
<input type="tel" name="contact_no" id="contact_no" maxlength="10" class="form-control" placeholder="Mobile No." autocomplete="off" required="true">
</div>
<div class="col-md-3">
<label for="">Email :</label>
</div>
<div class="col-md-3">
<input type="email" name="email" id="email" class="form-control" placeholder="Email" autocomplete="off" required="true">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label for="">Address :</label>
</div>
<div class="col-md-3">
<input type="text" name="address" id="address" class="form-control" placeholder="Address" autocomplete="off" required="true"></div>
<div class="col-md-3">
<label for="">Pin Code :</label>
</div>
<div class="col-md-3">
<input type="text" name="pin" id="pin" class="form-control" maxlength="5" placeholder="Pin Code" autocomplete="off" required="true">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label for="">Aadhar Number :</label>
</div>
<div class="col-md-3">
<input type="text" name="aadhar_no" id="aadhar_no" class="form-control" maxlength="12" placeholder="Aadhar Number" autocomplete="off" required="true">
</div>
<div class="col-md-3">
<label for="gender">Country :</label>
</div>
<div class="col-md-3">
<select name="country_id" id="country_id" class="form-control" required="true">
<option value="">Select Country</option>
<?php
$query1 = mysqli_query($db, "SELECT id,name FROM `tbl_country`");
while($row1 = mysqli_fetch_assoc($query1)){ ?>
<option value="<?php echo $row1['id']; ?>"><?php echo $row1['name']; ?></option>
<?php } ?> </select>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label for="">State :</label>
</div>
<div class="col-md-3">
<input type="text" name="state" id="state" class="form-control" placeholder="State Name" autocomplete="off" required="true">
</div>
<div class="col-md-3">
<label for="">District :</label>
</div>
<div class="col-md-3">
<input type="text" name="district" id="district" class="form-control" placeholder="District Name" autocomplete="off" required="true">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label for="">Game / Event :</label>
</div>
<div class="col-md-3">
<input type="text" name="sport" id="sport" class="form-control" placeholder="Game / Event Name" autocomplete="off" required="true">
</div>
<div class="col-md-3">
<label for="">Age Group :</label>
</div>
<div class="col-md-3">
<select name="age_group_id" id="age_group_id" class="form-control" required="true">
<option value="">Select Age Group</option>
<?php
$query2 = mysqli_query($db, "SELECT id,name FROM `tbl_master` WHERE status='1'");
while($row2 = mysqli_fetch_assoc($query2)){ ?>
<option value="<?php echo $row2['id']; ?>"><?php echo $row2['name']; ?></option>
<?php } ?> </select>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label for="">Coach / Manager Name :</label>
</div>
<div class="col-md-3">
<input type="text" name="team_name" id="team_name" class="form-control" placeholder="Coach / Manager Name" autocomplete="off" required="true">
</div>
<div class="col-md-3">
<select name="team_id" id="team_id" class="form-control" required="true">
<option value="">Select Coach / Manager</option>
<?php
$query3 = mysqli_query($db, "SELECT id,name FROM `tbl_master` WHERE status='32'");
while($row3 = mysqli_fetch_assoc($query3)){ ?>
<option value="<?php echo $row3['id']; ?>"><?php echo $row3['name']; ?></option>
<?php } ?> </select>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label for="">Upload Photo :</label>
</div>
<div class="col-md-3">
<input type="file" name="photo" id="photo" class="form-control" required="true">
</div>
<div class="col-md-3">
<label for="">Upload Signature :</label>
</div>
<div class="col-md-3">
<input type="file" name="signature" id="signature" class="form-control" required="true">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label for="">Document Type :</label>
</div>
<div class="col-md-3">
<select name="doc_id" id="doc_id" class="form-control" required="true">
<option value="">Select Document Type</option>
<?php
$query4 = mysqli_query($db, "SELECT id,name FROM `tbl_master` WHERE status='4'");
while($row4 = mysqli_fetch_assoc($query4)){ ?>
<option value="<?php echo $row4['id']; ?>"><?php echo $row4['name']; ?></option>
<?php } ?> </select>
</div>
<div class="col-md-3">
<label for="">Upload Document :</label>
</div>
<div class="col-md-3">
<input type="file" name="document" id="document" class="form-control" required="true">
</div>
</div>
</div>
<div class="form-group my-3">
<center>
<input type="submit" name="save" value="SUBMIT">
</center>
</div>
</form>
</div>
</div>