like today is 23 sep so when page load thru java script it should calculate the difference between today day and 28 sep so it says 5 days so value should passs 5 in p1 and D in t1
then if some visit on 24 sep so differnce between 24 sep and 28 sep is 4 days so value should pass 4 in p1 and D in t1 same goes on please advice
<!--here i want to pass dynamic values instead of staic 1 and static M -->
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="M">