PHP handling hyperlink click event--redirecting to html?

  • Thread starter Thread starter chisainekocat
  • Start date Start date
C

chisainekocat

Guest
For a HW assignment, I need to have a php homepage that has a few links that go to html pages. I set this up without a problem.

Now, when someone clicks on any of the links, I need to direct the user to a login/register page. I am to store the username and password information in a separate text file. If the user has already logged in within the past 5 minutes, the user won't see that page and will continue to the html link without a problem.

My main question is, how do I work out the part that a user can continue onto the html page if they are already logged in? My guess is to have an onClick attribute in all of the html links that directs to a php function within the same page, but then I don't know how to redirect to the html page. What methods should I look into for this?
 
Back
Top