Javascript form submit with checkbox click

Hello Experts,

This *should* be an easy one, ut I still need help!

I have a form and have checkboxes which submit the form when clicked - like this:

<input name="for_sale<%=PropRS("ID")%>" type="checkbox" value="1" <%if for_sale=1 then%> checked<%end if%> onclick="this.form.submit();">

Open in new window

Can anyone let me know how I can pick up when the form has submitted?

If request.Form("submit") <> "" doesn't work, and there will be numerous checkboxes, each with it's own ID, soI can't use them - plus I don't want a button!

Help appreciated - thanks!
Who is Participating?
GaryConnect With a Mentor Commented:
That's because you are not clicking a submit button so there is no value to check.
Amend your form with a hidden field that you can check against
Nico2011Author Commented:
thanks Gary - much appreciated!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.