Disable Link at specific time?

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
adilmarwat2004
Forum Commoner
Posts: 44
Joined: Fri Sep 04, 2009 11:28 pm

Disable Link at specific time?

Post by adilmarwat2004 »

I have link <a href="apply.php">Apply Online</a> in html and I want to set the time and date for the said link that on 10-03-2010 at 02:00 PM the said link disable/disappear.

how it is possible and how to code in php.

please help?

Adil
Griven
Forum Contributor
Posts: 165
Joined: Sat May 09, 2009 8:23 pm

Re: Disable Link at specific time?

Post by Griven »

http://php.net/manual/en/function.date.php

Here's some pseudo code.

Code: Select all

if(currentDate < date(expire date)){
  echo '<a href="apply.php">Apply Online</a>;
}
 
 
pole915
Forum Newbie
Posts: 1
Joined: Thu May 17, 2012 8:18 am

Re: Disable Link at specific time?

Post by pole915 »

i am a newbie in php

says i have a link <a href="example"> this link will disappear in 3 days! </a>

i can only do it by using php?
can help me to set an example? (i don't know anything about this php language)
so that i can use it as a template
thanks thanks thanks
Post Reply