include "lib/load_config_files.php"; if($_REQUEST['action']=="Submit") { $id=get_new_id("id","dt_user"); $cr_date=date("Y-m-d H:i:s"); /* if($_REQUEST[residential_work]=='Yes') { $residential_work="The Residential Estimator"; } else if($_REQUEST[residential_work]=='No') { $residential_work="No"; } if($_REQUEST[top_esti_soft]=='Yes') { $top_esti_soft="Best Bid"; } else if($_REQUEST[top_esti_soft]=='No') { $top_esti_soft="System"; } if($_REQUEST[rent]=='Rent') { $rent="Best Bid"; } else if($_REQUEST[rent]=='Own') { $rent="System"; } */ $sql_insert="insert into dt_user(id,user_cat_id,electrical_business,estimating_time,employee_no,bid_job,residential_work, estimating_software,work_value,service,top_esti_soft,training,rent,financing,compu_litarate,uses,phone_no,email,con_email_id,cr_date,block) values('$id','1','$_REQUEST[electrical_business]','$_REQUEST[estimating_time]','$_REQUEST[employee_no]', '$_REQUEST[bid_job]','$_REQUEST[residential_work]','$_REQUEST[estimating_software]','$_REQUEST[work_value]', '$_REQUEST[service]','$_REQUEST[top_esti_soft]','$_REQUEST[training]','$_REQUEST[rent]','$_REQUEST[financing]', '$_REQUEST[compu_litarate]','$_REQUEST[uses]','$_REQUEST[phone_no]','$_REQUEST[email]','$_REQUEST[con_email_id]','$cr_date','0')"; //echo $sql_insert; $rs_insert=q($sql_insert); if($rs_insert) { //$_SESSION['hmsg']="Your query has been received. We will get back to you shortly."; include "enquiry_mail_send.php"; //header("Location:index.php"); exit; } else { $_SESSION['hmsg']="Duplicate Record Found !! "; } } ?>