• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 468
  • Last Modified:

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!
1 Solution
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!

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now