I need to figure out which checkboxes has been ticked.
First I have 3 images.
| NEW | EDIT | DELETE |
Now, there is a list with contacts.
Each contact has a checkbox.
If I had a submit button, this would not be a problem.
But how do I do it when I replace the submit button with an image?
Here's the code. Any help is apprechiated!!!!!
<form >
<table>
<td class="DetailsBd2" colspan="3"> <br /> <strong> Administrasjon - Kontakperson </strong> <br />
<a onClick="openBrWindow(\'editInfo.php?type=new&table=contactdetails&compareValue='.$row->orgID.'\')">
<img title="Opprett ny kontakt" src="img/standard/new.gif" />
</a>
<a onClick="openBrWindow(\'editInfo.php?type=edit&table=contactdetails&compareValue='.$row->orgID.'\',')">
<img title="Endre opplysninger" src="img/standard/edit.gif" />
</a>
<a onClick="openBrWindow(\'editInfo.php?type=delete&table=contactdetails&compareValue='.$row->orgID.'\',')">
<img title="Slett kontakt" src="img/standard/delete.gif" />
</a>
</td>';
mysql_free_result($result);
$result = mysql_query('
SELECT contactdetails.*
FROM contactdetails
WHERE contactdetails.orgID = '.$_orgID) or die (mysql_error());
while ($row = mysql_fetch_array($result)){
$tmpContent .='
<tr>
<td class="DetailsBd2">
<input name="checkbox" type="checkbox" value="'.$row["contID"].'" />
</td>
<td>
<table width="300px">
<tr>
<th class="DetailsHd"> Navn </th> <td class="DetailsBd1">'.$row["cpFname"].' '.$row["cpMname"].' '.$row["cpLname"].'</td>
</tr>
<tr>
<th class="DetailsHd"> Telefon 1 </th> <td class="DetailsBd1">'.$row["contTlf1"].'</td>
</tr>
<tr>
<th class="DetailsHd DetailsHd2"> Telefon 2 </th> <td class="DetailsBd2">'.$row["contTlf2"].'</td>
</tr>
</table>
</td>
</td>
</tr>';
}
$tmpContent .='
</table>
</form>