Page 1 of 1

Disable Link at specific time?

Posted: Mon Mar 08, 2010 12:56 am
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

Re: Disable Link at specific time?

Posted: Mon Mar 08, 2010 2:28 am
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>;
}
 
 

Re: Disable Link at specific time?

Posted: Thu May 17, 2012 8:23 am
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