but I don't know what the # does? does it use PHP to generate the comments bit then go to that part of the page with a jump anchor?
search hashbang if you want more info.
If you give me a bit of time to have a shower and have tea I'll post the code for my image viewer that uses them
that's not a hashbang though, I don't think
it's not a hash bang chris
it's a bookmark, allows you to jump around using links in the same page (or other pages, and focus on the content you want to look at)
thought it was that

cheers
the ?comments=1 makes php display the contents then the #comments-bar jumps to the comments bit
awesome, thanks
no worries
p.s. php cannot read hash contents
the only way you can do that is to load the hash contents in javascript then ajax post them to a php file
is that every really necessary?
yep, I use it all the time!
e.g. when I am using pagination but it ajax loads the next page
then if somebody sends the URL to somebody else, it will load page 2
ahhh, I understand, so suppose you are using some AJAX, get the page to a certain state, you can use that to send that exact state to
someone else using the URL?
indeed!
awesome
(you'll get a login prompt but:
php loads the sweeney todd gallery
then ajax loads the photo with id= 1678