senz_uk Posted March 17, 2006 Share Posted March 17, 2006 Hi,I have very basic PHP knowledge, and this problem is driving me nuts!I recently switched servers and am having trouble displaying a variable. Basically I cobbled together a very simple login system wherby people register and login with there email address only (using a very basic PHP/MySQL system).When logged in, the page shows the users email address, i.e; Logged in as: "users email address".The code I had before was as follows:<?=($email)?>This grabbed the session variable, the users email, and displayed it fine. Now I have switched servers it doesn't work. I think it is because the new server has PHP 5 an the old one didn't. Anyway, I have tried loads of things, such as:<?phpecho $email;?>…but no joy. As I mentioned, I am a designer and have limited scripting knowledge. Can anyone help, please!Many thanks in advance…Senz Quote Link to comment Share on other sites More sharing options...
Gaia Posted March 17, 2006 Share Posted March 17, 2006 If it's a session then wouldn't it be $_SESSION['email'] ? Quote Link to comment Share on other sites More sharing options...
senz_uk Posted March 17, 2006 Author Share Posted March 17, 2006 Thanks for your mega-fast reply - that works!Cheers Gaia!Senz Quote Link to comment Share on other sites More sharing options...
Gaia Posted March 17, 2006 Share Posted March 17, 2006 No problem, glad to be of service :p ^_^ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.