| Server IP : 13.126.101.145 / Your IP : 216.73.217.50 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/rentals_updated/wp-content/themes/hello-elementor-child/custom/ |
Upload File : |
<?php
include('../../../../wp-config.php');
global $wpdb;
//print_r($_POST);exit;
$fullname = $_POST['fullname'];
$emailid = $_POST['emailid'];
$phonenumber = $_POST['phonenumber'];
$company_name = $_POST['company_name'];
$business_address = $_POST['business_address'];
$business_type = $_POST['business_type'];
$model_no = $_POST['model_no'];
$model_name = $_POST['model_name'];
$manufacture_year = $_POST['manufacture_year'];
$price = $_POST['price'];
$business_location = $_POST['business_location'];
$datetime = date("Y-m-d H:i:s");
$tablename ='wp_sale_equipments';
$date = date('Y-m-d H:i:s');
$user_ID = get_current_user_id();
// to store data in leads table
$result = $wpdb->insert($tablename, array(
'fullname' => $fullname,
'emailid' => $emailid,
'phonenumber' => $phonenumber,
'company_name' => $company_name,
'business_address' => $business_address,
'business_type' => $business_type,
'model_no' => $model_no,
'model_name'=> $model_name,
'manufacture_year'=> $manufacture_year,
'price'=> $price,
'business_location'=> $business_location,
'created_on' => $datetime
));
if($result){
echo 1; exit;
}else{
echo 2;exit;
}