You are here: Re: [PHP] Re: calling PHP self with a text link « PHP « IT news, forums, messages
Re: [PHP] Re: calling PHP self with a text link

Posted by "Mark Rees" on 09/02/05 12:27

> Ross wrote:
> > <a href="<? echo $PHP_SELF,'?','&action=something' ?>">do somehthing</a>
> >
> > this seems to work but can someone explain the syntax to me what does a
'?'
> > and a ',' do in PHP?
> >
> > I thought you joined strings with a full stop '.' (a period if you are
from
> > the US).
>

There was a long thread on this only yesterday, under the heading "String
format problem". The online archives will carry it shortly, if they don't
already, and it is well worth a read, especially the post by Satyam


> You are passing multiple parameters to the 'echo' language construct.
> The '?' is just a string, and is interpreted just like any other string
> in PHP. That will print out the value of $PHP_SELF followed by
> ?&action=something
>
> By the way, you really shouldn't have register_globals turned on. And
> you also really shouldn't top-post.
>
> --
> Jasper Bryant-Greene
> Freelance web developer
> http://jasper.bryant-greene.name/
>
> If you find my advice useful, please consider donating to a poor
> student! You can choose whatever amount you think my advice was
> worth to you. http://tinyurl.com/7oa5s

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация