Jump to content

Help with Registration Form Expiration Date


studgate

Recommended Posts

Hi Guys,

  I have a small problem. I am trying to create an expiration

date for a form meaning that after a certain date, people

will no longer be able to register anymore. Anybody knows of

a way to do that or a tutorial that can help me with that?

For example, I have an event that start in April 1st and people

can register now to March 26th, after the 26th the registration

will echo an error message or become inactive.

Thanks in advance guys!

Link to comment
Share on other sites

You would simply do a check prior to showing the form.  If the current date is within the allowed registration time then show the form, if it isn't show the message.

 

Simple Example:

$date = date("Ymd");
if($date < "20080315"){ // assuming you want it to close on March 15, 2008.  You can set this to whatever you want
// show form
}else{
// hide form
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.