| 
	
 | 
 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] 
 |