include "lib/load_config_files.php"; if($_REQUEST['action']=="Submit") { $id=get_new_id("id","dt_sad"); $cr_date=date("Y-m-d H:i:s"); $sql_insert="insert into dt_sad(id,sad_name,sad_email,sad_phone,sad_address,best_reached,interested_product,sad_question,cr_date) values('$id','$_REQUEST[sad_name]','$_REQUEST[sad_email]','$_REQUEST[sad_phone]','$_REQUEST[sad_address]', '$_REQUEST[best_reached]','$_REQUEST[interested_product]','$_REQUEST[sad_question]','$cr_date')"; //echo $sql_insert; $rs_insert=q($sql_insert); if($rs_insert) { $_SESSION['amsg']="Your query has been received. We will get back to you shortly."; include "enquiry_mail_send_sad.php"; header("Location:scheduleadeministration.php"); exit; } else { $_SESSION['amsg']="Duplicate Record Found !! "; } } ?>