I have index.php
and add.php
. My question is when I click on a link of day in index.php
, then go to add.php
and store in input date the value of clicked day
index.php
<td><a href ="add.php"><?php $date1=date('y-m-d');echo $date1;?></a></td>
<td><a href ="add.php"><?php $date2=date('y-m-d' ,strtotime("+1day"));echo $date2;?></a></td>
add.php
<input type="date" name"date" >
I need that when click on date ,auto store in input without filling