This topic is locked

Display current and future dates only

7/2/2006 12:38:54 PM
PHPRunner General questions
M
mfred author

I have a database with dates and I want to show only current and future dates, excluding past dates. I assume that I need to edit the code somewhere. Any assistance is appreciated.

Alexey admin 7/3/2006

Hi,
I recommend you to put the dates checking code into onSubmit event of FORM element on Add and Edit pages.

The user would be able to enter any date, but won't save a record with the dates from the past.