File: /home/barbeatleanalyti/www/manage.beatleanalytics.com/vaitarna_feedback.php
<?php
$con = mysqli_connect("localhost","beatle_live","Htrahdis@9876","beatle_live");
if(isset($_POST["save"])){
@$name = $_POST['name'];
@$mobile = $_POST['mobile'];
@$station = $_POST['station'];
@$staff = $_POST['staff'];
@$toilets = $_POST['toilets'];
@$services = $_POST['services'];
@$pnr = $_POST['pnr'];
@$remarks = $_POST['remarks'];
$query = "INSERT INTO vaitarna_feedback(name,mobile,station,staff,toilets,services,pnr,remarks) VALUES('$name','$mobile','$station','$staff','$toilets','$services','$pnr','$remarks')";
$query_run = mysqli_query($con,$query);
if($query_run)
{
echo "<script> window.open('thankyou.php','_self') </script>";
}
else
{
echo "Error in Inserted";
}
mysqli_close($con);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vaitarna Feedback</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<style>
html, body {
min-height: 100%;
}
body, div, form, input, select, textarea, label, p {
padding: 0;
margin: 0;
outline: none;
font-family: Roboto, Arial, sans-serif;
font-size: 14px;
color: #666;
line-height: 22px;
}
h1 {
position: absolute;
margin: 0;
font-size: 40px;
color: #fff;
z-index: 2;
line-height: 83px;
}
textarea {
width: calc(100% - 12px);
padding: 5px;
}
.testbox {
display: flex;
justify-content: center;
align-items: center;
height: inherit;
padding: 20px;
}
form {
width: 100%;
padding: 20px;
border-radius: 6px;
background: #fff;
box-shadow: 0 0 8px #669999;
}
.banner {
position: relative;
height: 300px;
background-image: url("/test.jpeg");
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.banner::after {
content: "";
background-color: rgba(0, 0, 0, 0.3);
position: absolute;
width: 100%;
height: 100%;
}
input, select, textarea {
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 3px;
}
input {
width: calc(100% - 10px);
padding: 5px;
}
input[type="date"] {
padding: 4px 5px;
}
textarea {
width: calc(100% - 12px);
padding: 5px;
}
.item:hover p, .item:hover i, .question:hover p, .question label:hover, input:hover::placeholder {
color: #669999;
}
.item input:hover, .item select:hover, .item textarea:hover {
border: 1px solid transparent;
box-shadow: 0 0 3px 0 #669999;
color: #669999;
}
.item {
position: relative;
margin: 10px 0;
}
.item span {
color: red;
}
.week {
display:flex;
justfiy-content:space-between;
}
.colums {
display:flex;
justify-content:space-between;
flex-direction:row;
flex-wrap:wrap;
}
.colums div {
width:48%;
}
input[type="date"]::-webkit-inner-spin-button {
display: none;
}
.item i, input[type="date"]::-webkit-calendar-picker-indicator {
position: absolute;
font-size: 20px;
color: #a3c2c2;
}
.item i {
right: 1%;
top: 30px;
z-index: 1;
}
input[type=radio], input[type=checkbox] {
display: none;
}
label.radio {
position: relative;
display: inline-block;
margin: 5px 20px 15px 0;
cursor: pointer;
}
.question span {
margin-left: 30px;
}
.question-answer label {
display: block;
}
label.radio:before {
content: "";
position: absolute;
left: 0;
width: 17px;
height: 17px;
border-radius: 50%;
border: 2px solid #ccc;
}
input[type=radio]:checked + label:before, label.radio:hover:before {
border: 2px solid #669999;
}
label.radio:after {
content: "";
position: absolute;
top: 6px;
left: 5px;
width: 8px;
height: 4px;
border: 3px solid #669999;
border-top: none;
border-right: none;
transform: rotate(-45deg);
opacity: 0;
}
input[type=radio]:checked + label:after {
opacity: 1;
}
.flax {
display:flex;
justify-content:space-around;
}
.btn-block {
margin-top: 10px;
text-align: center;
}
button {
width: 150px;
padding: 10px;
border: none;
border-radius: 5px;
background: #669999;
font-size: 16px;
color: #fff;
cursor: pointer;
}
button:hover {
background: #a3c2c2;
}
@media (min-width: 568px) {
.name-item, .city-item {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.name-item input, .name-item div {
width: calc(50% - 20px);
}
.name-item div input {
width:97%;}
.name-item div label {
display:block;
padding-bottom:5px;
}
}
</style>
</head>
<body>
<div class="testbox">
<form method="POST" >
<div class="banner">
<h1>Vaitarna Feedback </h1>
</div>
<br/>
<p>Please help us to serve you better by taking a couple of minutes. Fill in the information below to indicate how you would like to become involved.</p>
<br/>
<div class="question">
<label>Enter Your Name</label>
<div class="question-answer">
<div>
<input type="text" id="iname" name="name" placeholder="Enter Your Name" required><br>
</div>
</div>
</div>
<div class="question">
<label>Enter Your Mobile No.</label>
<div class="question-answer">
<div>
<input type="text" id="imobile" name="mobile" placeholder="Enter Your Mobile No." required><br>
</div>
</div>
</div>
<div class="question">
<label>How is the Overall Cleanliness of the Station ?</label>
<div class="question-answer">
<div>
<input type="radio" value="Excellent" id="radio_1" name="station"/>
<label for="radio_1" class="radio"><span>Excellent</span></label>
</div>
<div>
<input type="radio" value="Very Good" id="radio_2" name="station"/>
<label for="radio_2" class="radio"><span>Very Good</span></label>
</div>
<div>
<input type="radio" value="Good" id="radio_3" name="station"/>
<label for="radio_3" class="radio"><span>Good</span></label>
</div>
<div>
<input type="radio" value="Average" id="radio_4" name="station"/>
<label for="radio_4" class="radio"><span>Average</span></label>
</div>
<div>
<input type="radio" value="Poor" id="radio_5" name="station"/>
<label for="radio_5" class="radio"><span>Poor</span></label>
</div>
</div>
</div>
<div class="question">
<label>How will you rate the Overall service of cleanliness staff ?</label>
<div class="question-answer">
<div>
<input type="radio" value="Excellent" id="radio_11" name="staff"/>
<label for="radio_11" class="radio"><span>Excellent</span></label>
</div>
<div>
<input type="radio" value="Very Good" id="radio_12" name="staff"/>
<label for="radio_12" class="radio"><span>Very Good</span></label>
</div>
<div>
<input type="radio" value="Good" id="radio_13" name="staff"/>
<label for="radio_13" class="radio"><span>Good</span></label>
</div>
<div>
<input type="radio" value="Average" id="radio_14" name="staff"/>
<label for="radio_14" class="radio"><span>Average</span></label>
</div>
<div>
<input type="radio" value="Poor" id="radio_15" name="staff"/>
<label for="radio_15" class="radio"><span>Poor</span></label>
</div>
</div>
</div>
<div class="question">
<label>Rate the availability of hand wash etc in the toilets?</label>
<div class="question-answer">
<div>
<input type="radio" value="Excellent" id="radio_21" name="toilets"/>
<label for="radio_21" class="radio"><span>Excellent</span></label>
</div>
<div>
<input type="radio" value="Very Good" id="radio_22" name="toilets"/>
<label for="radio_22" class="radio"><span>Very Good</span></label>
</div>
<div>
<input type="radio" value="Good" id="radio_23" name="toilets"/>
<label for="radio_23" class="radio"><span>Good</span></label>
</div>
<div>
<input type="radio" value="Average" id="radio_24" name="toilets"/>
<label for="radio_24" class="radio"><span>Average</span></label>
</div>
<div>
<input type="radio" value="Poor" id="radio_25" name="toilets"/>
<label for="radio_25" class="radio"><span>Poor</span></label>
</div>
</div>
</div>
<div class="question">
<label>Are you satisfied with the cleaning services?</label>
<div class="question-answer">
<div>
<input type="radio" value="Yes" id="radio_31" name="services"/>
<label for="radio_31" class="radio"><span>Yes</span></label>
</div>
<div>
<input type="radio" value="No" id="radio_32" name="services"/>
<label for="radio_32" class="radio"><span>No</span></label>
</div>
</div>
</div>
<div class="question">
<label>Enter Your PNR No. Or Ticket No</label>
<div class="question-answer">
<div>
<input type="text" id="fname" name="pnr" placeholder="PNR No. Or Ticket No"><br>
</div>
</div>
</div>
<div class="item">
<label for="visit">Remarks</label>
<textarea id="visit" rows="3" name="remarks"></textarea>
</div>
<div class="btn-block">
<button type="submit" name="save" >Submit</button>
</div>
</form>
</div>
</body>
</html>