I'm trying to create a script to delete templates from my database, but I want to make it so that the default template can't be delete (making the checkbox unclickable). [code] while($template = mysql_fetch_array($info)){ $num = count($template['id']) -1; $last = $template['id'][$num]; //if($template['id'][$i] ==0){$disable = "disabled";}else{$disabled = "";} $object[] = "<tr> <td width=50'>{$template['name']}</td> <td width='50'>{$template['id']} Delete: </td> <td><input name='template{$template['id']}' type='checkbox' $disabled value='{$template['id']}'/></td>"; } [/code] Basically I have the code the code ready, but I can't figure out a way of parsing the results so that when it is displayed it outputs all the data correctly. If anyone has any Ideas let me know. I'm up to anything as long as it works. My methods are just what I know. Thanks.