Jump to content

disable register form


searls03

Recommended Posts

ok, so I have this code for my event registration page......I need to make this event register button dissapear after the date has passed.......can I do this using dd/mm/yyyy or do i need yyyy-mm-dd?  here is the codeif ($reg_end == date("F",strtotime("+1 month"))){

  echo "<form action='registration.php' method='get'><input type='hidden' name='eventid' value='{$row['eventid']}'><INPUT TYPE='submit' name='submit'  VALUE='Register'></form>\n";}

  else{echo "No longer accepting registrations";}

 

 

 

 

also I need to know how to modify the red code to do this........thanks in advance.......btw I will have field call reg_end which is when the turn off date is.......

Link to comment
https://forums.phpfreaks.com/topic/231993-disable-register-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.