This is my form :
<input type="checkbox" name="dept" value="sales" <?php if(isset($_GET['dept'])) echo "checked='checked'"; ?> onclick="this.form.submit();" />Sales <br />
<input type="checkbox" name="dept" value="it" <?php if(isset($_GET['dept'])) echo "checked='checked'"; ?> onclick="this.form.submit();" />IT <br />
I want to send the value of "dept" as soon as the checkbox is checked and want the page to be refreshed with the checkbox checked and the value for that dept passed to the page. I dont want any SUBMIT button, so i m using the this.form.submit(), but it keeps all the checkboxes checked.
Please help.
Thank you.