I have encountered a problem recently and I am unable to solve it. I have a client booking form, where they get a dropdown menu which is connected to a database with treatments etc. that displays all the data, and I also have a jQuery DatePicker, and further plans to implement a jQuery TimePicker very soon. 

When I try to submit the form to be updated to a mySQL Database, none of the data comes through. It doesn't even show up as an array whey I `var_dump($_POST)` the whole thing. Also I have a textarea, it says the data goes through, but it doesn't actually appear in the database.

Here is the `var_dump($_POST)`:

[![enter image description here](https://i.stack.imgur.com/j5Hov.png)](https://i.stack.imgur.com/j5Hov.png)

Here is the database dropdown **PHP** code:

```
<!-- All database connection stuff followed by the following: -->

$query = "SELECT * FROM `Treatments`";

$result = mysql_query($query, $con);
$options = "";

if (!$result){
    die("No results found.");
}

while ($row = mysql_fetch_array($result)){
    $options .= "<option>$row[1]</option>";
}

?>

```

And here is what gets inserted into my Database:  

- I have the DataTypes in mySQL set as `DATE` for Date and `TIME` for Time - 

[![enter image description here](https://i.stack.imgur.com/9WvIu.png)](https://i.stack.imgur.com/9WvIu.png)

Here is my **PHP**:

```
<?php
var_dump($_POST);

$hostname = 'hostname';
$dbname = 'dbname';
$username = 'username';
$password = 'password';

$con=mysql_connect($hostname,$username,$password) or die("Failed to connect to MySQL: " . mysql_error());
$db=mysql_select_db($dbname,$con) or die("Failed to connect to MySQL: " . mysql_error());

$insert = "INSERT INTO Booking_request_form (Treatment, Date, Time, Message) VALUES('".$_POST["Treatment"]."','".$_POST["Date"]."', '".$_POST["Time"]."', '".$_POST["Message"]."')";

var_dump($insert);
$handle = mysql_query($insert);
var_dump($handle);

?>

```

And here is my **HTML** form:   

I have commented out the TimePicker because it didn't work for me.

```
<form action="treatment_form.php" method="post"> 
    <div class="heading1">
        <p>Select Your Treatment:</p>
    </div>

    <div class="dropdown">
        <select><?php echo $options; ?></select>
    </div>

    <div class="heading2">
        <p>Select Your Date:</p>
            <input type="text" id="datepicker"/>
                <script>
                $(function() {
                    $( "#datepicker" ).datepicker({dateFormat: 'dd/mm/yy'});
                });
                </script>
    </div>

    <div class="heading3">
        <p>Select Your Time:</p>
            <input type="text" id="timepicker"/>
            <!-- <script>
            $(function($) {
                $(function() {
                    $('input.timepicker').timepicker();
                });
            })(jQuery);
            </script> -->
    </div>

    <div class="heading4">
        <p>Add a message for our Staff:</p>
        <textarea name="message" placeholder="Enter Message..."></textarea>
    </div>

    <div class="submit">
        <input type="submit" value="Request Booking" id="Submit">
    </div>
</form>

```