<html><body><form action=<?php echo $PHP_SELF; ?> METHOD=POST>Day : <input type=text name=day maxsize=2><br>Month : <input type=text name=month maxsize=2><br>Year : <input type=text name=year maxsize=2><br><input type=submit value=submit> <?phperror_reporting(E_ALL ^ E_NOTICE); if (isset($day) && isset($month) && isset($year)) { $calc = ($day[0] * $day[1]) + ($month[0] * $month[1]) + ($year[0] * $year[1]); echo "Your lucky no. is $calc";}?>