Programming

  • 1 {{ upvoteCount | shortNum }}

    Validation of php drop down menu of months,days and years

    rathurosamal in Programming

    Cannot get it to validate, for leaps years, and feb,april 31. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <?php $todo=$_POST['todo']; if(isset($todo) and $todo=="submit"){ $month=$_POST['month']; $dt=$_POST['dt']; $year=$_POST['year']; $date_value="$month/$dt/$year"; echo "mm/dd/yyyy ... [read more]