Thanks devinemke,
err..just not quite there yet.
I've tried a few things.
here is where i am:
The form:
<?php echo '
<form name="form1" method="POST" form action="">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td colspan="2">Hot or not Hot?please vote for picture #' . $pic_id . ':<br>
</td>
</tr>
<tr>
<td width="32%">hot</td>
<td width="68%"> <input type="radio" name="vote" value="' . $pic_id . '|pic_bvotes"></td>
</tr>
<tr>
<td>not hot</td>
<td> <input type="radio" name="vote" value="' . $pic_id . '|pic_mvotes"></td>
</tr>
<tr>
<td> </td>
<td align="right"> <input type="submit" name="Submit" value="Vote">
</td>
</tr>
</table>
</form>'; ?>
Then I have tried to place the following both before the <head> tags and just after the form:
<?php $explode = explode('|', $_GET['vote']);
$sql = "UPDATE picturetbl SET $explode[1] = $explode[1] + 1 WHERE pic_id = $explode[0]"; ?>
picturetbl is my table, pic_bvotes is the equivalent of the field you suggest: votes_hot and pic_mvotes equivalent of vote_not
At the moment, The page reloads but does not update the database table when i vote.
Can you see what I'm still doing wrong?
(note that the pic_id displays correctly on the page for the selected picture)
You can see a basic example of what i'm trying to do at:
http://www.purple-e3.com/purple/section_01/01_whatson/03_past_gallery1.php?pageNum_rsrspictures=0&totalRows_rsrspictures=17&eve_id=119&pic_id=2234&pic_id=2234
clicking on thumbnails loads the "big" pic on the right that you can vote for.
Thanks again for your help.