Thanks that fixed the problem, but I have a question then. Am I supposed to put the ' in the $_SESSION[] in the normal parts of code. Thanks, Dave
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 21 Mar 2002, David Johansen wrote: > > I was just wondering if there's a way to use echo with session variables. > > When I try to do this: > > > > <?php > > if (isset($_SESSION['x_Email'])) > > echo "value=\"$_SESSION['x_Email']\""; > > ?> > > The issue is with the syntax you're using to refer to arrays within double > quotes. > > echo "value=\"{$_SESSION[x_Email]}\""; > > miguel > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php