Let's say I have a link to a URL like this:

domainname.com/cgi-bin/photo.cgi?photo=9319.jpg

Now, the CGI code should take the query string, look at "photo" which in this case is 9319.jpg, and should show the image 9319.jpg on the page.

I don't know any CGI, so I'd really appreciate some code.

Thanks in advance.