adilmarwat Posted March 8, 2010 Report Share Posted March 8, 2010 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 Link to comment Share on other sites More sharing options...
Synook Posted March 8, 2010 Report Share Posted March 8, 2010 You check the time using date() and if it's past said deadline you just don't show the link. However, people could still access the page directly, so it is better to place aforementioned deadline-checking code on the actual apply page, and generate some sort of error on the fail condition. Link to comment Share on other sites More sharing options...
adilmarwat Posted March 8, 2010 Author Report Share Posted March 8, 2010 please provide the code for date in php and when it passes from the time specific time. Link to comment Share on other sites More sharing options...
Synook Posted March 8, 2010 Report Share Posted March 8, 2010 Don't you want to try to work it out yourself? http://www.php.net/manual/en/function.date.phphttp://www.php.net/manual/en/control-structures.if.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now