form suspension automatically

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
archna
Forum Newbie
Posts: 1
Joined: Tue Aug 07, 2007 11:05 am

form suspension automatically

Post by archna »

I have to suspend the form from registering for christmas holidays say from November 15 to January 4..and later I have to activate the form from January 5th..How do I loop through dates and do it..Or is there any other better way to do it...

Thanks in Advance
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post by thiscatis »

Add a line in the form validation where you check if the current date is between start disable and end disable,
Should only be 1,2 lines of code.
Post Reply