Hi I am just new to programing and I am working on an scheduler for meetings. I have 2 textbox by default
textbox1 -> $date_from
textbox2->$date_to
My problem is I want to have an error checking or invalid input checker when the user clicks the submit button. For example when the user enter a previous date which must be invalid and the value of the $date_from is ahead of $date_to.
Example:
$date_from -> 02-Feb-2001
$date_to -> 14-Feb-2001 //must be invalid because its a previous date
$date_from -> 1-Mar-2009
$date_to -> 18-Feb-2009 //must be invalid because $date_from is ahead of $date_to
Any idea on how can I create error checking and display the error?
Thanks