[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: add_client.php
<?php $id=$_REQUEST['id']; include('header.php'); $show=new Oops($db); ?> <div id="page-wrapper"> <div class="main-page"> <div class="tables"> <div id="col-md-12"> <div class="form-grids row widget-shadow" data-example-id="basic-forms"> <div class="form-title"> <h4>Add Client->Back</a></h4> </div> <div class="form-body"> <form method="post" data-toggle="validator" enctype="multipart/form-data" > <div class="form-group"> <div class="col-md-3"> <label>Client Name</label> <input type="text" class="form-control" placeholder="Full Name" name="name" size="30" required> </div> </div> <div class="form-group"> <div class="col-md-3"> <label>Client Email</label> <input type="text" class="form-control" placeholder="Full Name" name="email" size="30" required> </div> <div class="col-md-3"> <label>Client Phone</label> <input type="text" class="form-control" placeholder="Full Name" name="phone" required> </div> </div> <div class="form-group"> <div class="col-md-3"> <label>City</label> <input type="text" class="form-control" name="city" size="30" required> </div> <div class="col-md-3"> <label>State</label> <select class="form-control" name="st" id="typ" required="" style=""><option value="">Select</option> <option value="">State</option> <?php $table1='state_list'; $stmt=$show->state($table1); $num=$stmt->rowCount(); if($num>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ echo "<option value='".$row['state']."'>".$row['state']."</option>"; } } ?> </select> </div> </div> <div class="form-group"> <div class="col-md-3"> <label>Pincode</label> <input type="text" class="form-control" pattern="[0-9]+" name="pincode" size="30" required> </div> </div> <div class="form-group"> <div class="col-md-6"> <label>Address</label> <input type="text" class="form-control"name="address" size="30" required> </div> <div class="clearfix"></div> </div> <div class="form-group"> <div class="col-md-6"> <input type="submit" class="btn btn-info" name="sub" value="Submit"> </div> <div class="clearfix"></div> </div> </div> </form> <?php if(isset($_POST['sub'])){ // $status='Active'; $uid=$show->getid('ids','USR'); $table='client'; $data = array( 'client_id' => $uid, 'name' => htmlentities(strip_tags($_POST['name'])), 'phone' => htmlentities(strip_tags($_POST['phone'])), 'email' => htmlentities(strip_tags($_POST['email'])), 'password' =>md5('123456'), 'address'=>htmlentities(strip_tags($_POST['address'])), 'state'=>htmlentities(strip_tags($_POST['st'])), 'city'=>htmlentities(strip_tags($_POST['city'])), 'pincode'=>htmlentities(strip_tags($_POST['pincode'])), 'created_at'=>date('d-m-Y'), 'update_by'=>'ADMIN' ); if($show->insert('client',$data)){ echo "<script>alert('Thank you for Registration.Default password has been set as:123456.');window.location.href='all_client.php';</script>"; } }?> </div> <script src="js/bootstrap-datepicker.js"></script> <script type="text/javascript"> // When the document is ready $(document).ready(function(){ $("#date1").datepicker({ format: 'dd-mm-yyyy', }); $("#date2").datepicker({ format: 'dd-mm-yyyy', }); $("#date3").datepicker({ format: 'dd-mm-yyyy', }); $("#date4").datepicker({ format: 'dd-mm-yyyy', }); }); </script> </div></div> </div></div> <!--footer--> <?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: 677.49 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