Jump to content

Archived

This topic is now archived and is closed to further replies.

senz_uk

Designer in trouble, help!

Recommended Posts

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:

<?php
echo $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

Share this post


Link to post
Share on other sites
If it's a session then wouldn't it be $_SESSION['email'] ?

Share this post


Link to post
Share on other sites
No problem, glad to be of service :p ^_^

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.