Complaint Submission Status
include("conn.php"); if(isset($_POST['email'])) { $name=$_POST['name']; //echo $name; $phone=$_POST['phone']; //echo $lga; $email=$_POST['email']; $address=$_POST['address']; $city=$_POST['city']; //echo $state; $state=$_POST['state']; //echo $lga; $occupation=$_POST['occupation']; $age=$_POST['age']; //echo $state; $sector=$_POST['sector']; //echo $lga; $department=$_POST['department']; //$resisted=isset($_POST['resisted'])?$_POST['resisted']:null; $office=$_POST['office']; $rank=$_POST['rank']; $subjekt=$_POST['subjekt']; $process=$_POST['process']; $complain=$_POST['complain']; //$honest=isset($_POST['honest'])?$_POST['honest']:null; $detail=$_POST['detail']; $from=$_POST['from']; $subject=$_POST['subject']; $body=$_POST['body']; //include_once('captcha/cf.captcha.php'); // if(!check_captcha($_POST['setCaptcha'])){ // echo 'CAPTCHA CHECK: '.$error_captcha.''; // exit(); // }else{ // echo 'CAPTCHA CHECK: Correct...'; // //proceed // } function param($Name) { global $HTTP_POST_VARS; if(isset($HTTP_POST_VARS[$Name])) return($HTTP_POST_VARS[$Name]); return(""); } $from = param("from"); $to = param("email"); //$cc = param("cc"); //$bcc = param("bcc"); $subject = param("subject"); $body = param("body"); if($from != "" && $to != "" && $subject != "") { $headers = "From: " . $from . "\n" . "To: " . $to . "\n" . //"CC: " . $cc . "\n" . //"BCC: " . $bcc; mail("", $subject, $body, $headers); } ?> Sorry, there was a problem uploading your file. $sql="insert into complain(name,phone,email,address,cityId,stateId,occupationId,ageId,sectorId,departmentId,officeId,rankId,subjectId,processId,complainCategoryId,complainDetails,target) values('$name','$phone','$email','$address','$city','$state','$occupation','$age','$sector','$department','$office','$rank','$subjekt','$process','$complain','$detail','$target')"; $result=mysql_query($sql,$connection) or die(mysql_error()); echo "Your Complaint Has Been Received!!!"; //header("location: index.php"); $message = "Dear $name,\nThank you for submitting your complaint. Your complaint has been received. We shall feed you back in 48hrs.\n\n\nRegards,\nIPFM Team."; $email = "$email"; $subject = "Complaint Received"; $header ="From: complain@ipfm.tradewize.net\n"; mail($email,$subject,$message,$header); } elseif(isset($_POST[''])) { echo "rubbish"; } ?>
Sidebar Menu
Sponsors
- DreamTemplate
Over 6,000+ Premium Web Templates - TemplateSOLD
Premium WordPress & Joomla Themes - ImHosted.com
Affordable Web Hosting Provider - MyVectorStore
Royalty Free Stock Icons - Evrsoft
Website Builder Software & Tools - CSS Hub
Premium CSS Templates