So I have images in an html page. I want to have users fill out a survey on each image. I have about 150 images so I don't want to write 150 surveys with the proper code corresponding to the image. So I have done this so far:
form method="post" action="index.php">
<input type="hidden" value="<?php $imagename = "whatever.jpg"; ?>" >
where the form processes index.php which is the actual survey, and sends whatever.jpg as the value for $imagename in the following hidden field in the survey:
<input type=hidden name="image" value="<?php print($imagename); ?>" >
Then whatever.jpg would be submitted to the database as the value for image.... this sounds good in theory but does not work. Can someone please help?