[PHP-DB] Re: Displaying a single picture...
You could do something as simple as this: I think most browsers will convert the spaces in the link (when clicked) to '+' or '%20', but this may not be true with some less popular browsers (i don't know). Then displayPic.php might be something like this (if you have latest PHP version): displayPic.php -- Hope this helps Adam --- Original Message --- I have several thumbnail images spread out in my website. I thought it would be cool to write a single PHP script so that when they click on the thumbnail, the name of the larger pic would be passed to a PHP script that displays it on its own page...I don't even care about a link back, they can just click the browser's back arrow. How do I get the name stored when they click on the thumbnail? My confusion is, I'm seeing this one dimensionally. You click on an image, it calls a link. But I need to click on the image, store the name of the pic I want to display, then call the PHP link. I've looked at some of the free Image Lib PHP scripts out thereand they all go wy overboard on what I'm looking to do. Any suggestions? Thanks
RE: [PHP-DB] RE: Displaying a single picture...
> I have several thumbnail images spread out in my website. I thought it > would be cool to write a single PHP script so that when they click on the > thumbnail, the name of the larger pic would be passed to a PHP script that > displays it on its own page...I don't even care about a link back, they > can > just click the browser's back arrow. > > How do I get the name stored when they click on the thumbnail? > > My confusion is, I'm seeing this one dimensionally. You click on an > image, > it calls a link. But I need to click on the image, store the name of the > pic I want to display, then call the PHP link. Hmmm... how about: ?? ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] RE: Displaying a single picture...
not sure i understand why you would need to use a php script for this? why not just use a static html tag, if all you're doing is opening the picture in a new window? -jon -Original Message- From: Brett Lathrope [mailto:brett@;lathrope.com] Sent: Tuesday, November 12, 2002 1:44 PM To: [EMAIL PROTECTED] Subject: Displaying a single picture... I have several thumbnail images spread out in my website. I thought it would be cool to write a single PHP script so that when they click on the thumbnail, the name of the larger pic would be passed to a PHP script that displays it on its own page...I don't even care about a link back, they can just click the browser's back arrow. How do I get the name stored when they click on the thumbnail? My confusion is, I'm seeing this one dimensionally. You click on an image, it calls a link. But I need to click on the image, store the name of the pic I want to display, then call the PHP link. I've looked at some of the free Image Lib PHP scripts out thereand they all go wy overboard on what I'm looking to do. Any suggestions? Thanks -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php