I am here today to learn on creating check function for validation.
in the above scenario i have below requirements to be fulfilled.
I have a form with 4 fields for input type they can take date + time.
my basic need is a server side function while loading values in to db.
<input type='datetime' name='date1[<?=$type?>]' size='18'>
<input type='datetime' name=date2[<?=$itype?>]' size='18'>
<input type='datetime' name='date3[<?=$type?>]' size='18'>
<input type='datetime' name='date4[<?=$type?>]' size='18'>
my condition are
a) I need function to check whether date2 is greater then date1, date3 is greater then date2, date4 is greater then date3.
2) User will not submit all values at once. Let say if I submit date1 value to db today he may submit another value after week in to the db.
I need your help to solve my above need as i am newbie I need some basic code to expand or extend same.
Thanks & Regards,