stopremembering wrote in php

gallery

hi, i hope its ok to ask here -
i taught myself how to set up a photo gallery with php, and the thumbs page is up and all of that, but when i click on a thumb, i want it to open the page it goes to right there, i don't want it to use javascript and open a popup with the full image or any of that. is it possible? how do i write it so a thumb will link to its image normally rather than open as a popup? i am just having a super difficult time finding any info on writing it that way.
thanks.