php to jump to a label on a page?

Miscellaneous Forums/General Discussion/php to jump to a label on a page?

You know in HTML you can specify a part of page to jump to using # in the url and by having an anchor on the page (useful for long pages). Is there a way to do such a thing for a php page. For example, www.greyaliengames.com has along games page and I want to be able to link to that page but have it scroll down to the correct game automatically depending on what the user originally clicked, get it?

Any help is much appreciated, thanks.

Why not write a function that echo's out the HTML-Code needed? Anchors work exactly like links.
Or do I understand you wrong?

maybe you understand me fine, but I think I'm actually too dumb to understand you. It sounds cool, but not really sure what you mean... sorry :-(

Can't you just do it as you would with a normal html page? If you want to link to it from another page you just put #LABELNAME at the end of the url.

I'll try that, I never did as I assumed it wouldn't work!

PHP pages are just HTML pages to browsers - the end user can't tell if PHP, Perl, ASP, or a large number of monkeys created the page. Read up on how anchor links work.

great it works thanks. I shoulda just tried it instead of posting haha, sorry!

PHP is processed server side, when it gets to the client, it is plain old html. So you can echo out ANYTHING that works in HTML and it will work AOK