Thanks, Scot L. Diddle, Richmond VA
you'll need to dynamically populate mindate/maxdate configuration of the calendars based on the information in your database and the restrictions you
BTW: you still need to double-check the range on the server side. Data received from the client should never be trusted.
Stop me if you've head this before... ( I hit Post Reply once before ) but it seems to have ended up in bit-bucket.
Thanks for the input... Are you saying that my only option is to rebuild the ALLOWED_DATES parm 'post submit' via PHP, similar to what I did to build the ALLOWED_DATES originally ? Is there a way to do this via JS ?
Point taken about verifying the user date server side... However, my users ( read Boss, and Big Boss Big Boss ) are "fill in your own adjective here", so I hacked the Tigra JS and made the Modal input field READONLY, and issue and onClick Alert telling my punkin' users that they must use the calendar control. The dates displayed by the calendar control DO exist in the DB, and they can't enter an invalid date, or an invalid date format. Ya gotta love your users, but you don't have to trust them. :)
Scot L. Diddle, Richmond VA
there is no new information after that (at least no information that browser can find out without additional requests to the server). That's why it
seems like a reasonable solution to query the database before displaying the form, find out what valid range is and put that data in the calendar
configuration so nothing outside this range can be selected.