I am writing an PHP module for admission process. It have an admission form. Tentatively ddmission process start from mid of March and ends in mid of May (not fixed). My question is what is the best way to activate and deactivate the calendar control of this admission form before and after the admission date so user cannot use this admission form except the announced admission period.

Any suggestion is welcmed and appriciated.

You could store the start and end date in one of your db tables, or another data source such as an xml file. Then when the page is loaded, using php code, check the current data and see if its within the start and end date that you are storing. If it is, show the calendar. If not, do not show it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.