I hope this is not a stupid question! I am very interested in making a gallery like this

http://www.josephkaynephoto.com/phot...sage-brush-bw/ what interests me the most is how the photo-caption is displayed on the browser address line or how the url includes the photo-caption. And when the arrow is clicked for the next photo, the image goes to the next one and the link shows the photo-caption of that image.

How is this done? Is this done with php and a database? How can I create a link that includes the photo-caption and avoid the usual id and other numbers when using a php gallery?

Thank you for your help...