--- Chuck Ouellette <[EMAIL PROTECTED]> wrote:

> Here is the code:

Aha.  Finally!  We can't help you without some code, you know.

> //this is the actual link user sees exept that the number 1 is displayed
> at that end of the "Sign In" or "Log Out"
> 
> <span class="style51">|</span> <a href=<?=$ref?>> <?=print
> $login?></a><span class="style51"> |


I don't like using the <?= ... ?> tags.  They are meant to let you print or
echo a variable and they don't work on all installation configurations so the
code isn't portable.  It also reminds me a bit too much of JSP or ColdFusion.

When you coded <?=print $login?> instead of <?=$login?> you are basically
asking for the success/failure output code of an attempt to run the print
command.  In PHP a true can be expressed as 1.

So, either use <?=$login?> or <?php print $login; ?> instead of what you have
for this variable.

James
_____


James D. Keeline
http://www.Keeline.com  http://www.Keeline.com/articles
http://Stratemeyer.org  http://www.Keeline.com/TSCollection

http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Spring Semester Begins Jan 31 -- New Classes Start Every Few Weeks.


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to