But one last thing please. I have the following i had to chage $i to $s because I already have a loop using $i.
<? $s = 0; while($get = mysql_fetch_array($imagepreview)){?>
<td><div align="center"><a href="javascript:popImage('http://<? echo $siteaddress; ?>/customerimages/<? echo $get['photo']; ?>','<? echo $_SESSION['username'];?>')"><img src="/customerimages/thumb/<? echo $get['thumb']; ?>" border="1" alt="<? echo $querymeminfo['username']; ?>" title="<? echo $_SESSION['username']; ?>"></a><br>
<a href="?action=del&&img=<? echo $get['thumb']; ?>"><font size="1" face="Geneva, Arial, Helvetica, sans-serif">(Delete)</font></a><br>
<? if ($_SESSION['multiplegirls'] == 'Yes'){ ?>
<font color="#FFFFCC" size="1" face="Geneva, Arial, Helvetica, sans-serif"><u>Anonymous
Name:</u></font><br>
<input name="girl[<? echo $s; ?>][name]" type="text" id="girlname" size="15" value="<? echo $get['girlname']; ?>">
<br>
<? } ?>
<input type="hidden" name="girl[<? echo $s; ?>][thumb]" id="girlthumb" value="<? echo $get['thumb']; ?>">
<input type="radio" name="girl[<? echo $s; ?>][makemain]" id="girlmakemain">
<font color="#FFFFCC" size="2" face="Geneva, Arial, Helvetica, sans-serif">Default
Image?</font> </div></td>
<? $s++; } ?>
How can I make it so the radio field is only allowed to be selected once no matter how many are shown?
Right now if the user has 3 images in the database then 3 radio fields are shown and they can select all 3. I just want them to only be able to select one, but still show all 3 radio fields. THANKS FOR ALL THE HELP GUYS. This has been a true learning project that is a little advanced for me.