Is it possible to submit a checkbox form without submit button in php?

I am a php newbie and i am trying to create a price range system for my ecommerce website project.

so I did a checkbox form:

[code]

0 - 5000

5000 - 1000

[/code]

For that no problem, i can handle it…But what i want to achieve is if the user ticked the box, i can get the value of the box ticked without a submit button clicked.

How can i achieve that?

This is the form i want to achieve

[code]

0 - 5000

5000 - 1000

[/code]

Hope i explain clearly…Thanks in advance for the help!

You need to use javascript to detect when the state of the checkbox changes, and then do an ajax request to a server side (php) script that will handle it.

Sponsor our Newsletter | Privacy Policy | Terms of Service