Most likely, this will be a duplicate for this question, but I'm struggling to find the exact answer to my problem.
The user enters the start date of the clientβs lease (in the form on the previous page), then he needs to create the next date (in a week) that the client must pay. For instance:
$start_date = $_POST['start_date']; $date_to_pay = ???
Suppose the user entered in 2015/03/02:
$start_date = "2015/03/02";
Then I want the date to be equal to the week of the week (2015/03/09):
$date_to_pay = "2015/03/09";
How to get around this? Many thanks.
source share