A comma works when you use echo. Is there any reason why this is a bad idea?

Charlie Llewellin
----- Original Message ----- 
From: "John Vanderbeck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 14, 2001 9:11 AM
Subject: Re: [PHP] $PHP_SELF in Netscape PART 2


> > You are using commas instead of periods, use ".$PHP_SELF." instead of
> > ",$PHP_SELF," (and for the other instances as well).
> 
> Huh? I am going off of the example from the PHP documentation:
> 
> >From http://www.php.net/manual/en/function.urlencode.php
> echo '<A HREF="mycgi?foo=', urlencode ($userinput), '">';
> 
> So I am using that as a model:
> echo ' A HREF=" ', $PHP_SELF, '?mode=index&category=',
> urlencode($cateogory), ' ">Blah</A>';
> 
> - John Vanderbeck
> - Admin, GameDesign
> 
> >
> >
> >                      Visit the Gates Motel webgame:
> >                      http://www.gameslate.com/gatesmotel/
> >
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to