<?php $simdi=time(); $gun=60*60*24; $kacgun=7; $xgunsonra=date("Y-m-d",($simdi+($gun*$kacgun))); $xgunönce=date("Y-m-d",($simdi-($gun*$kacgun))); echo '<input max="'.$xgunsonra.'" min="'.$xgunönce.'" type="date" />'; ?>
<?php $simdi=time(); $gun=60*60*24; $kacgun=7; $xgunsonra=date("Y-m-d",($simdi+($gun*$kacgun))); $xgunönce=date("Y-m-d",($simdi-($gun*$kacgun))); echo '<input max="'.$xgunsonra.'" min="'.$xgunönce.'" type="date" />'; ?>