Dear BunkerMaster,
Thank you for your swift response. Unfortunately, I don't seem to have got much further.
Following your advice, I put session_start(); at the top of every page and of every header but my variables still don't persist.
I'm not setting cookies at this stage - there's no security problem, the site is just for a cycling club.
I don't know if this eliminates my sending you down dead-end alleys but -
I use an ISP's servers over which I have no control.
I use the method=post thingie 'cos I have no idea why I should use the other one, method=get - or why not!
I asked the server which version of php and it came back 4.0.4.
Someone wrote about setting globals. My book says this is a configuration option and if this was set, all variables would be accessible throughout the session; I suppose the ISP would have set that, wouldn't they? (Can't ask them right now, they've all sloped off home.) I don't need to have access to the server to do that, do I?
My apologies for seeming thick - I'm a newbie with the keyboard in one hand and the php, and mysql, and html manuals in the other.
Yooors,
Iain.
Originally posted by Bunkermaster
cookies are not secure in any way for they can be read by any wiseass using a packetsnifer (yeah I know on same lan or network division but still)
Use sessions (and yes you have to start a session in every script BUT IF the $SESSION['IsLogged'] session isn't set redirect to login page and check for user pw and then set $SESSION['IsLogged']).