/// client action
$q = select max(id) as id from links
$new_id = odbc_result($q,1) +1;
insert into links (id,link) values ($new_id, '$userLink')
/// client action ends
<form action="action.php" method="post">
<?
$query = select id,link from links where moderated = 0;
while(odbc_fetch_row($query))
{
print "odbc_result($query,2)
//addThis[] allows to check more than one link at the same time
<input type='checkbox' name='addThis[]'
value='odbc_result($query,1)'>'';
}
?>
<input type="submit">
</form>
//action page
for($i=0;$i<count($addThis);$i++)
{
update links set moderated = 1 where id = $addThis[$i];
}