To pass the day/month/year off to the next page you can use a link that would look like:
daydraw.php?day=$dayNumber&month=$monthNumber&year=$yearNumber
As for the calculations, you can do a quick
if(is_numeric($_GET['day'])) { [calculations] }
to see if your variable is actually a number then do the calculations with it.
As long as your string doesn't have any non-numeric characters PHP will allow you to manipulate it as an interger/float variable.