Skip to content
Snippets Groups Projects
Commit c0adc501 authored by William Sutanto's avatar William Sutanto
Browse files

fix pickingpoint and destination (space problem)

parent 22112e2d
Branches master
No related merge requests found
......@@ -62,8 +62,8 @@
<?php
echo "<input type='hidden' name='id_active' value='".$_GET["id_active"]."'>";
echo "<input type='hidden' name='id_active_driver' value='".$_POST["id_active_driver"]."'>";
echo "<input type='hidden' name='picking_point' value=".$_POST["picking_point"].">";
echo "<input type='hidden' name='destination' value=".$_POST["destination"].">";
echo "<input type='hidden' name='picking_point' value='".$_POST["picking_point"]."'>";
echo "<input type='hidden' name='destination' value='".$_POST["destination"]."'>";
?>
<div id="rate"></div>
<textarea id="comment" name="comment" placeholder="Your comment..." rows="3"></textarea>
......
......@@ -7,7 +7,6 @@
$dest = $_POST["destination"];
$rate = $_POST["rate"];
$comment = $_POST["comment"];
$sql = "INSERT INTO transaction (idCustomer, idDriver, orderDate, pickUp, destination, rate, comment, isShowDriverHistory, isShowCustomerHistory) VALUES ('".$id_customer."','".$id_driver."','".$date."','".$pickup."','".$dest."','".$rate."','".$comment."',1,1)";
if ($conn->query($sql) === TRUE) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment