[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: add-adderss.php
<?php include("header.php"); ?> <!-- Inner Banner --> <!--<div class="inner-banner"> <div class="container"> <h4>Add Address</h4> <ul> <li><a href="index.php">Home</a></li> <li><i class="fa-solid fa-angles-right"></i></li> <li>Add Address</li> </ul> </div> </div>--> <div class="add-address"> <div class="container"> <h3>Add Address</h3> <h5><a href="place_order.php"><u>Delivery to existing address</u> </a></h5> <div class="form-box"> <form method="post"> <div class="input-group"> <input type="text" name="name" placeholder="Name" required> </div> <div class="input-group"> <input type="text" name="phone" placeholder="Phone" required> </div> <div class="input-group"> <select name="state" required> <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']."'";if($state==$row['state']) echo "selected"; echo ">".$row['state']."</option>"; } } ?> </select> </div> <div class="input-group"> <input type="text" name="city" placeholder="City" required> </div> <div class="input-group"> <input type="text" name="pincode" placeholder=" Pincode" required=""> </div> <div class="input-group"> <input type="text" name="address" placeholder=" Address" required=""> </div> <div class="input-group input-btn"> <input type="submit" value="Add Address" name="add_address"> </div> </form> <?php if(isset($_POST['add_address'])){ $data = array( 'order_id' =>$_REQUEST['oid'], 'name' =>$_POST['name'], 'phone'=>$_POST['phone'], 'address' =>$_POST['address'], 'pincode' =>$_POST['pincode'], 'city'=>$_POST['city'], 'state' =>$_POST['state'], 'user_id' =>$_SESSION['user_id'], ); // print_r($data); if($show->insert('other_address',$data)){ echo '<script> setTimeout(function() { swal({ title: "Thank You !", text: "Address has been added", type: "success" }, function() { window.location = "place_order.php?order='.$_REQUEST['oid'].'"; }); }, 1000); </script>'; //echo "<script>swal('Thank you for Registration.');window.location.href='".$_SERVER['request_uri']."';</script>"; } } ?> </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: 678.19 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