I met a trouble with a form.
In fact I have a php dynbamic page which has 1 parameter (and id), I’m trying to get an other parameter, so I have this fom:
<form action="index.php?p=employee-monitoring&id=<?php echo $_GET['id'] ; ?>" method="get">
<fieldset>
<legend>CHOISIR UNE DATE</legend>
<label>Date:</label>
<input type="date" name="date" onblur="form.submit()" />
</fieldset>
</form>
But when I choose a date it redirection me to index.php and there is no parameter on the date, for example it redirect me to this page /index.php?date=
I do not understand what did I wrong have done.
receive all my utmost Respect.
Kind Regards.
SP
Add a hidden field and remove
&id=<?php echo $_GET['id'] ; ?>from the action attribute.Actually, you should pass
p=employee-monitoringthe same way: