T
Todor Vachkov
Dear all,
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>
-----------------------------
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
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>
</tr>Â Â Â Â said:</td>
-----------------------------
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