Gossamer Forum
Home : Products : DBMan : Discussions :

Fields which rely on other fields

Quote Reply
Fields which rely on other fields
Part of my data base is a future date, it consistes of 3 drop down menu fields (all alpha fields). I was wondering if its possible to produce an error message if the user enters an invalid date! (Like when the user doesn't fill in a required field)
Some thing like: -

if ($month = 2) ($day = < 29){

This way you can't have Februrary 31, cause it doesn't exist!

Quote Reply
Re: Fields which rely on other fields In reply to
Also, in relation to this, the future date is an end date for an event, I also have a start date, is there away of making sure the end date is always greater than the start date, so you can't have an event which looks like its finishing before it starts