You are here: Re: Appending #anchor with other variables « PHP Programming Language « IT news, forums, messages
Re: Appending #anchor with other variables

Posted by Chuck Anderson on 11/04/05 22:12

Joe Molloy wrote:

>Joe
>"Pseud O'Nym" <notexpletivedeleteduk@notyahoo.co.uk> wrote in message
>news:436ab59c$0$27969$ed2619ec@ptn-nntp-reader02.plus.net...
>
>
>>Hi all, and apologies if this is a newbie type question, I am one.
>>
>>I need to get a page to go to a paticular <a name=""> tag. It works fine
>>with no variables passed eg: myscript.php#top, but I need to append other
>>info and just can't work out how to do it.
>>
>>TIA
>>
>You could add your variables to the querystring like
>
>script.php#top?myvar=thevar&myvar1=thevar2
>
>and then retrieve them on the script.php page using
>
>$myvar = $_GET["thevar"];
>
>$myvar1 = $_GET["thevar2"];
>
>Happy coding :)
>
It appears to be a moot point now for the OP (is going to use POST), but
the fragment identifier (#top) should be at the end of the URI string -
after the variables.

script.php?myvar=thevar&myvar1=thevar2#top

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************

 

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

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