Page 1 of 1

How can I send a # in the URL to go down the page w/ PHP?

Posted: Sun Feb 27, 2005 3:59 pm
by compuXP
Hi,

How can I send variables through the URL in PHP, and ALSO a # so it will go to an A TITLE="something" tag...?


I need this for my forums, a "go to post" feature.

Thanks,

-compuXP

Posted: Sun Feb 27, 2005 4:01 pm
by Joe
$_GET[] and $HTTP_GET_VARS[] for grabbing URL variables and use html anchor tags to allow quick views '#'

?

Posted: Sun Feb 27, 2005 4:08 pm
by compuXP
Oh... yeah.... ok... I'm a bit new to PHP. What do you mean, quick view?

What would the URL look like? Like this?:

http://www.site.com/page.php?a=182&bat=19#pagelocation

Or...?

Posted: Sun Feb 27, 2005 4:26 pm
by feyd
yes, they look like that.

Code: Select all

<a name="pagelocation"></a>
would work with that url..

Posted: Sun Feb 27, 2005 4:36 pm
by Joe

Posted: Sun Feb 27, 2005 5:48 pm
by compuXP
Oh, ok, thanks! But, when I tried it, it didn't work... 8O is that bad? :(

Posted: Sun Feb 27, 2005 6:54 pm
by Joe
You must be doing something wrong. Did you read through the anchor tag tutorial I posted?.