I want to display photos in a gallery and let ppl rate them. I have created a survey in php that stores people's responses to a sql database. I want to use the survey for all the images but need to know which picture is being commented on. How do I set a variable for the picture then pass it on to the survey which stores it in the MySQL database?
Thanks in advance.
Have a hidden field in the survey that contains the name of the image; something like:
<input type="hidden" value="<? print $imageName; ?>" />
Diego
how does the name of the image get passed to the hidden field?
I would create a DB table with image names in it for every image. Then call all the rows from the table (for the images that will be on that page), and loop through the values to build the forms.