View Single Post
  #5 (permalink)  
Old 12-12-2007, 03:14 AM
donna's Avatar
donna donna is offline
Member
 
Join Date: Oct 2007
Location: New Zealand
Posts: 202
donna is on a distinguished road
Basically you want to have the login form go to an 'action' page which checks that the login details are correct and if they are it will set a cookie something like 'loggedin = true' (you would set that same variable to false by default). Then the page you want hidden text on would use an if statement something like this:

if (loggedin == true) {
... show the secret text...
}

If you need more help let me know by posting again and I'll see what I can come up with for you. But chances are there are lots of scripts out there that do this. If you really don't know PHP though they may be a bit daunting to use.

Donna

__________________
Looking for FREE TRAFFIC?

Reply With Quote