here is the code:
-----------------------------
<tr>
Â* Â* Â* Â* <td>ohne Anmeldung: </td>
Â* Â* Â* Â* <td><input name="vanm" id="vanm" type="checkbox"
onclick="DisableTeilnehmerzahl()"></td>
</tr>
<tr>
Â* Â* Â* Â* <td>Max. Teilnehmerzahl: </td>
Â* Â* Â* Â* <td><input name="vteilz" id="vteilz" type="text" size="1"
maxlength="3"
></td></tr>
-----------------------------
function DisableTeilnehmerzahl() {
Â* Â* Â* Â* if (document.new_veranstaltung.vanm.checked == true) {
Â* Â* Â* Â* Â* Â* Â* Â* document.new_veranstaltung.vteilz.disabled=true;
Â* Â* Â* Â* Â* Â* Â* Â* document.new_veranstaltung.vteilz.value="0";
Â* Â* Â* Â* } else {
Â* Â* Â* Â* Â* Â* Â* Â* document.new_veranstaltung.vteilz.disabled=false;
Â* Â* Â* Â* Â* Â* Â* Â* document.new_veranstaltung.vteilz.value="";
Â* Â* Â* Â* }
}
-----------------------------
When the "vanm" checkbox is being checked the text input "vteilz" should be
deactivated and become the value 0. By sending the form parameters to a php
script I'm getting for the variable $_POST['vteilz'] NULL instead of 0.
Can someone help me?
Thanks in advance