make image appear in website
hey there, im making the photo generator thing and this is how it works.
there is a list of names, when someone clicks on a name, there photo appears on the website in a specific area, when i new name is clicked the picture is replaced with there pic.
How might i go about doing this? all the pictures have been uploaded to my webserver already, just need the code.
thx :)
Re: make image appear in website
How is the names and the photo's linked? Does a image name have the same value as a person's id in the database for instance?
You can use a javascript called in the link's onclick.
Another option is to use a querystring, having the page redirect to itself with the image name in the url (mypage.php?pic=123.jpg)