Thanks Gordon,

This is used strictly in one file which is my header file. I do have the
same issue in a form for a "select" field that I am using a variable for
"Choose a State" field. It too is displaying the 1 after "Choose a
State1" I figure though that if I can find out what is causing it in one
location than I can correct the rest. There is no other reference to the
variable $login than what is listed below. It has me a little stumped.
And if I just echo the variable it displays correctly. IE if at the
bottom of the first script I put a debug line in like this:

echo "<br>Login = $login<br>Ref = $ref<br>";  // This displays the
values correctly no (1) at the end. 

 

 

Here is the code:

 

// Sets up the user link and prompt for a sign-in or sign-out session. 

if(!isset($_SESSION['username'])) {

$login = 'Sign In';

$ref = "https://testsite.wncg.net/users/login_form.php";;

}else {

$login = 'Log Out';

$ref = "https://testsite.wncg.net/users/logout.php";;

 

//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"> |

 

-----Original Message-----
From: Gordon Stewart [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 28, 2005 8:36 AM
To: [email protected]
Subject: Re: [php-list] Variable Question

 

On Mon, 28 Mar 2005 07:55:14 -0500, Chuck Ouellette <[EMAIL PROTECTED]>
wrote:
> 
> 
> Hi Group,
> 
> Hi have created a variable for a link if a user is not signed in it
will
> display "Sign In" if they are logged in then it will display "Log Out"
(and
> of course is linked to the appropriate process). Everything works fine
> except for the display. If not logged in the "link" shows "Sign In1"
and if
> logged in shows "Log Out1" I for the life of me can't find where it's
> getting the number 1 from. Any ideas?


find the code where it says "Sign In" - & check if you have any
variable names being displayed after the text...

Is this just ONE script ? or are you using multiple/several scripts -
You may need to search all your scripts for 'sign in'..

PS - The variable might be 'echoed' / 'printed'  a few lines after the
'sign in' has been displayed - Not necessarily the same line of code..

-- 

G Stewart
Gmail invites - Hundreds available..
Gmail : [EMAIL PROTECTED]
NZ: [EMAIL PROTECTED]


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=129qtnqg1/M=298184.6191685.7192823.3001176/
D=groups/S=1705005703:HM/EXP=1112103370/A=2593423/R=0/SIG=11el9gslf/*htt
p:/www.netflix.com/Default?mqso=60190075> click here


 
<http://us.adserver.yahoo.com/l?M=298184.6191685.7192823.3001176/D=group
s/S=:HM/A=2593423/rand=116309347> 

 

  _____  

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/
 



Reply via email to