Click to See Complete Forum and Search --> : Help with A Web Form...


DeXeD
01-15-2009, 10:04 PM
Hey Everyone,

Noob web developer here! Okay...here's the situation...I want to have a directory full of images on my web server and the images will all be of dogs. The images will be titled by the names of the dogs in the picture. For example, if an image has a picture of Ace and Betty, the file name would be Ace-Betty.jpg. So, this directory has all of these images in it. I want to put an input box on the site that allows users to enter a dogs name and it will pull up all of the pictures that include that dogs name.

So, my question is...is there a way to have a text input box that then searches a specified directory for images with that name in them and then display those images? This is all still in theory and no website exists yet...I just want to know if I can do this. Any help would be much appreciated!

Thanks,

Dex

Fang
01-16-2009, 09:24 AM
Not with html, but doable with JavaScript or preferably a server side script.
The onerror would fire if the image was not available:<img alt="dog" onerror="alert('not available');" src="dogs/cat.jpg" height="100" width="125">

scaraffe
01-16-2009, 02:00 PM
Yes. Not possib;e only with html. gotta use some kind of a server side script.

starheartbeam
01-16-2009, 02:10 PM
I have seen some free programs out there that will do that kind of thing for you. I dont have the list with me right now but just do a google search and I am sure you will find some. Good luck!

DeXeD
01-23-2009, 01:33 PM
Actually, I haven't been able to find any free programs to do this for me. I will post in the server side script section...hopefully someone there can help me.