I tried to do something which I initially thought would not be very difficult, but silly me... Here's the formula:
What I want is to put in 6 input fields. By filling in any of the 6, the others will calculate automatically (when the forms submits). Here's the catch... they have to be date strings (Mar-3-2008). I have the snippet of code below to convert any date input to the format I want, but now my brain has taken a vacation. If anyone can set me in the right direction, I would really appreciate it.
Code:
$a = $_GET['a'];
$b = $a+15;
$c = $b+14;
$d = $c+17;
$e = $d+11;
$f = $e+17;
What I want is to put in 6 input fields. By filling in any of the 6, the others will calculate automatically (when the forms submits). Here's the catch... they have to be date strings (Mar-3-2008). I have the snippet of code below to convert any date input to the format I want, but now my brain has taken a vacation. If anyone can set me in the right direction, I would really appreciate it.
Code:
$input = $_GET["date"];
$bill = date( 'M-j-Y', strtotime($input));
echo $bill;
{/code]