ups
hab doch noch ein Problem
er nimmt leider immer nur den letzten?
die Zahl in tc[] wird von der Datenbank übergeben ($id)
<script language="JavaScript" type="text/javascript">
function setCheck(obj) {
document.getElementById("tc[8]").checked=obj.checked;
}
</script><input type="hidden" name="id[]" value="8"><tr>
<td><b>Fussballverband Niederrhein e.V.</b></td>
<td><a href="http://www.fvn.de" target="_blank">
http://www.fvn.de</a></td>
<td><select name="rubrik[8]" class="tx12"><option value="Fussball">Fussball</option><option value="Vereine">Vereine</option><option value="Diverses" selected>Diverses</option></select></td>
<td><input type="radio" value="1" name="online[8]" checked onClick="setCheck(this)"> Ja</td>
<td><input type="radio" value="0" name="online[8]" onClick="setCheck(this)"> Nein</td>
<td align=center><input type="checkbox" name="tc[8]" value="8"> </td>
</tr>
<script language="JavaScript" type="text/javascript">
function setCheck(obj) {
document.getElementById("tc[18]").checked=obj.checked;
}
</script><input type="hidden" name="id[]" value="18"><tr>
<td><b>Fußballportal DFBnet</b></td>
<td><a href="http://www.fussball.de" target="_blank">
http://www.fussball.de</a></td>
<td><select name="rubrik[18]" class="tx12"><option value="Fussball" selected>Fussball</option><option value="Vereine">Vereine</option><option value="Diverses">Diverses</option></select></td>
<td><input type="radio" value="1" name="online[18]" onClick="setCheck(this)"> Ja</td>
<td><input type="radio" value="0" name="online[18]" checked onClick="setCheck(this)"> Nein</td>
<td align=center><input type="checkbox" name="tc[18]" value="18"> </td>
</tr>
<script language="JavaScript" type="text/javascript">
function setCheck(obj) {
document.getElementById("tc[13]").checked=obj.checked;
}
</script><input type="hidden" name="id[]" value="13"><tr>
<td><b>Jugendtraining</b></td>
<td><a href="http://www.supercoach.de" target="_blank">
http://www.supercoach.de</a></td>
<td><select name="rubrik[13]" class="tx12"><option value="Fussball">Fussball</option><option value="Vereine">Vereine</option><option value="Diverses" selected>Diverses</option></select></td>
<td><input type="radio" value="1" name="online[13]" checked onClick="setCheck(this)"> Ja</td>
<td><input type="radio" value="0" name="online[13]" onClick="setCheck(this)"> Nein</td>
<td align=center><input type="checkbox" name="tc[13]" value="13"> </td>
</tr>
Dirk