Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove form elements by date restriction?

Status
Not open for further replies.

jisoo22

Programmer
Apr 30, 2001
277
US
Hello all,

Can anyone show me how I can remove form elements like select menus from a webpage based on a deadline date? For example, someone can choose whatever item they like from a drop-down select mention until August 21st. When August first rolls around, they are automatically removed (I would imagine using a combination of if/else statements and comment markers). I'm thinking I need to use the date/time stamp but not sure how. Any ideas would be appreciated.

Thanks!
Jisoo22
 
Hi,

Use an if statement to see if the current date matches your hard coded date or if it's past that date and then show or hide the form elements based on that.

You will need to use the date function fount here:
Hope this helps!

Nate

mainframe.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top