I have a form with a lease registration. In it, I have the fields $datainicio
, $meses
and $datatermino
. The start date I put automatic, according to the date of the day. The months should be placed at the time of registration, being 6, 12, 18, 24, 36, 48 or 60 months.
My problem is this: I would like to get the variable $datainicio
and add it with the variable $ months to get the value of $datatermino
, all at the time of registration.
I know that with pure PHP I can not do this. I have difficulties with jQuery. I would like your help.
$datainicio + $meses = $datatermino.