File: //home/cafsindia/allyindian_com/sbltt/app/get_feedinfo.php
<?php
$frm = "";
if(isset($_POST["frm"])){
$frm = $_POST['frm'];
}
if($frm === "feed_submit"){
include('./dbconnect.php');
$dbconnect = new dbconnect;
$db = $dbconnect->connect();
$feed_id = "";
if(isset($_POST["feed_id"])) {
$feed_id = base64_decode($_POST['feed_id']);
}
$vch_quality = "";
if(isset($_POST["vch_quality"])) {
$vch_quality = $_POST['vch_quality'];
}
$vch_media = "";
if(isset($_POST["vch_media"])) {
$vch_media = $_POST['vch_media'];
}
$vch_seat = "";
if(isset($_POST["vch_seat"])) {
$vch_seat = $_POST['vch_seat'];
}
$driving_skill = "";
if(isset($_POST["driving_skill"])) {
$driving_skill = $_POST['driving_skill'];
}
$driver_behaviour = "";
if(isset($_POST["driver_behaviour"])) {
$driver_behaviour = $_POST['driver_behaviour'];
}
$sightseeing = "";
if(isset($_POST["sightseeing"])) {
$sightseeing = $_POST['sightseeing'];
}
$remarks = "";
if(isset($_POST["remarks"])) {
$remarks = $_POST['remarks'];
}
$created_date = date("Y-m-d H:i:s");
mysql_query("INSERT INTO sblt_feed_back_trip(tour_no,vch_quality,vch_media,vch_seat,driving_skill,driver_behaviour,sightseeing,remarks,created_date) VALUES ('$feed_id','$vch_quality','$vch_media','$vch_seat','$driving_skill','$driver_behaviour','$sightseeing','$remarks','$created_date')");
echo json_encode(array('success' => TRUE, "msg" =>'Your feedback was successfully submited'));
}
?>