Well, I'm no expert, but I would first take out the equal sign ("=") 
that is between the echo and quotes parts of your echo statements. As 
well, I'm not sure if you need the "@" symbol before the $_SESSION. 
Again, I'm no expert, but you might try it see if it works.

Mark

-----

On May 29, 2006, at 12:39 PM, jnoelcook wrote:

All,

I am a newbie to php, and have many questions.

I am trying to create a link to appear on an HTML page that
shows: "Login / Signup" when not logged in, and: "Signout" when one
IS logged in.

I placed the following lines of code in my HTML text in the place
where I want the link to be.

<?php
     
      if (@$_SESSION['auth'] = !"yes")
     {
        echo = "<p><a href=''>Login /
Signup</a></p>";
        echo = "<p><a href=''>Signout</a></p>";
            exit();
      }
?>

However, when I go to this page, no link whatsoever appears.  Could
someone provide the correct code for this command?

Thanks much!!!

Jeff









The php_mysql group is dedicated to learn more about the PHP/MySQL 
web database possibilities through group learning.
Yahoo! Groups Links









The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning.



SPONSORED LINKS
American general life and accident insurance company American general life insurance company American general life
American general mortgage American general life insurance Computer internet security


YAHOO! GROUPS LINKS




Reply via email to