shewien wrote:I have already attached : <a href="formpage.php?person=1"><img=blablabla></a>
to each thumbnail.
you must not attach this code, but alter it a bit and replace the original...
should be something like this:
Code: Select all
<a href="formpage.php?person=1"><img src="picture_john_doe.jpg"></a>
on the form page you now know that the person wants to vote on person 1, in other words John Doe, use that to build you're form!
on that page you will have to pass that data to the next page, wich enters the data into the database.
You can use a hidden field for that.
On the last page (wich enters the data into the database) you will have to make you're query to enter the data.
for wich you will have to use the variables you passed from the form.
How that query looks depends entirely on what fields you got in you're table.