PHP Conditional validation


I am very new to PHP and am building a database to capture warehouse efficiency for work.

I have a form where users enter details, it then writes these details to a microsoft access database.

I am currently using vdaemon to assist me with the validation.

My question is this:

if I have a ‘Planned start time field’ and an ‘actual start time field’, and the actual start time is after the planned start time, a field for ‘reason for being late’ must become a required field when coming to validation. if it is within time it is not required.

To add to this further only when I enter in a late time will the field for ‘reason for being late’ even be visisble.

Can this be done?

I just want to thank you in advance for all the help, I do appreciate it.

Ryan Smith

Sponsor our Newsletter | Privacy Policy | Terms of Service