Jump to content


Photo

Designer in trouble, help!


  • Please log in to reply
3 replies to this topic

#1 senz_uk

senz_uk
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 17 March 2006 - 10:08 PM

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

#2 Gaia

Gaia
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts
  • LocationCanada

Posted 17 March 2006 - 10:13 PM

If it's a session then wouldn't it be $_SESSION['email'] ?

#3 senz_uk

senz_uk
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 17 March 2006 - 10:20 PM

Thanks for your mega-fast reply - that works!

Cheers Gaia!

Senz

#4 Gaia

Gaia
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts
  • LocationCanada

Posted 17 March 2006 - 10:24 PM

No problem, glad to be of service :P ^_^




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users