Take the tour ×  Hello I am trying to create a timer for an
auction website. Each product has a specific end date called
TargetDate, which is entered in TimerInput.php file. These
values are then posted into TimerOutput.php file which will
display the product followed by the timer countdown to finish
date. Each time the counter>15 and the user click on bid button
the timer continue countdown normally but when the counter<15,
each time clicking bid causes the timer to reset to 15 by
extending the TargetDate by the specific value related to when
the button was pressed. First the Bid button is not working so
instead the function is called by refreshing the page. When the
timer is under 15, refreshing the page causes the TargetDate to
be extended as it should be and the timer is reset to 15. But
the problem is when the first TargetDate entered orginally in
TimerInput.php file is reached the bid is over although showing
different time during execution of code shows that the date is
being updated.  I have tried to