That was it James Thank you I just rewrote to be <?=$login ?> and that fixed it. Much Thanks!
-----Original Message----- From: James Keeline [mailto:[EMAIL PROTECTED] Sent: Monday, March 28, 2005 10:10 AM To: [email protected] Subject: RE: [php-list] Variable Question --- 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 Sponsor ADVERTISEMENT <http://us.ard.yahoo.com/SIG=12960es5i/M=297844.5692940.6932969.3356155/ D=groups/S=1705005703:HM/EXP=1112109023/A=2533537/R=0/SIG=10v7of2am/*htt p:/www.target.com/careers> click here <http://us.adserver.yahoo.com/l?M=297844.5692940.6932969.3356155/D=group s/S=:HM/A=2533537/rand=932287348> _____ 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] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of <http://docs.yahoo.com/info/terms/> Service. [Non-text portions of this message have been removed] 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/
