I am working on this form:

```
<form action="index.php" method="get">
    <label>Ankomst</label> <input type="text" id="datepicker1" name="p_arr" value="<?php echo date('d/m/Y');?>"/>
    <label>Avreise </label><input type="text" id="datepicker2" name="p_dep" value="<?php echo date ('d/m/Y', strtotime(' +1 day'));?>"/>

    <label>Personer </label><select name="p_pax">
        <option selected="selected" value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
        <option value="8">8</option>
        <option value="9">9</option>
    </select>
    <input type="submit" name="submit">
</form>

```

And need to change the parameter syntax on form submit from: 

```
http://localhost:8888/booking%20form/index.php?p_arr=31%2F01%2F2019&p_dep=01%2F02%2F2019&p_pax=1

```

To:

```
localhost:8888/booking%20form/index.php?p_arr=20190131_0000&p_dep=20190201_0000&p_pax=1_1_1

```

I have tried with this code for to change the date syntax: 

```
<?php
if(isset ($_GET['submit'])){
  $date = date('Ymd_000', strtotime($_POST['date']));
}
?>

```

This is the jQuery code: 

```
  <script>
  $( function() {
    $( "#datepicker1, #datepicker2" ).datepicker({minDate: "+0"});
  });
</script>

```

How kan I change the syntax from ('d/m/Y') to ('Ymd\_000) and p\_pax to 1\_1\_1, on form submit?

Appreciate help on this one...