I have the following form:
<?php
include "conexao.php";
echo"<form class='navbar-form navbar-left' action='#'>";
echo"DATA INICIAL: <input type='text' name='datainicio' id='datainicio' class='form-control'>";
echo"DATA FINAL : <input type='text' name='datafinal' id='datafinal'class='form-control' >";
echo"OCORRENCIA : <select class='form-control' id='ocorrencia' name='ocorrencia'>";
$result= mysql_query ("SELECT * FROM ocorrencias") or die ("não foi possivel fazer a pesquina no banco");
while ($row = mysql_fetch_assoc($result))
{
$v_oc_id = $row["oc_id"];
$v_oc_desc = $row["oc_desc"];
echo"<option value='$v_oc_id'>$v_oc_desc</option>";
}
echo"</select>";
echo" <button type='submit'class='btn btn-primary'><span class=' glyphicon glyphicon-search'></span></button>";
echo"</form>";
?>
What I need, after the query that the date chosen is in the date field, as shown in the image, ie after the query the date is still selected.