@:
Your solution won't work completely since you'd have an answer in seconds, not days. You still have to calculate the number of days that's in that amount of seconds.
-------------------------------------------------------------------------------------------
Get todays UNIX Timestamp:
time();
Now, create a UNIX Timestamp of the submitted date:
$sub_time = mktime(0,0,0,$_POST['aninstallmon'],$_POST['aninstallday'],$_POST['aninstallyear']);
Now from here is some good old math:
<?php
// Get current time
$curtime = time();
// Get submitted dates time:
$subtime = mktime(0,0,0,$_POST['aninstallmon'],$_POST['aninstallday'],$_POST['aninstallyear']);
// 1.) Calculate the difference in times
$diff = abs($curtime-$subtime);
// 2.) Define Time lengths:
$sec = 60;
$min = $sec*60;
$hour = $min*60;
$day = $hour*24;
$week = $day*7; // Not needed, since you want days between
// 3.) Calculate the number of days in the difference:
$days = floor($diff / $day);
// 3a.) Update the difference
$diff = $diff - ($days*$day);
// 4.) Display the days:
echo 'There are ' . $days . ' days between now and ' . $_POST['aninstallmon'] . '/' . $_POST['aninstallday'] . '/' . $_POST['aninstallyear'];
?>
That should get you going....