Re: Updating a GET variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> What's wrong with just putting the url parameters in the link that you know
> you need, one by one?

I have a footer that I include on every page and would like it to
adapt to whatever situation it finds itself in.  Is your suggestion,
to do the following for the existing example:

echo "<a href='index.php?name=".$_GET['name']."&this=".$_GET['this']."&lang=en'>Flip</a>";


>  Also, don't just output the values sent to the server, as that's an attack waiting to happen.

Are you referring to echoing the SCRIPT_NAME and QUERY STRING values
into the href attribute?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux