Re: [PHP] Re: calling PHP self with a text link
Mark Rees wrote: Ross wrote: 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 That thread was very interesting, and while Satyam's advice was very true and thought-provoking, you must remember (as one reply mentioned) that you are talking about optimisations that save you about 0.1ms or so... -- 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: calling PHP self with a text link
> Ross wrote: > > do somehthing > > > > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: calling PHP self with a text link
Ross wrote: do somehthing 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). 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: calling PHP self with a text link
do somehthing 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). R. ""Ross"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I want call the current page and set a variable (or call a function) > > < a href="index.php?variable=bananas" -this works but means I have to > change it for every page name > > I have tried > > this is the link > > Only works within a tag. > > Any ideas - no javascript solutions that is what I am trying to avoid. > > > R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php