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:
<form method="POST" action="?">
<p> <input type="checkbox" name="dori" value="dori"><em> 0 - 5000</em></p>
<p><input type="checkbox" name="bora" value="bora"><em> 5000 - 1000</em></p>
<input type="submit">
</form>
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
<form method="POST" action="?">
<p> <input type="checkbox" name="dori" value="dori"><em> 0 - 5000</em></p>
<p><input type="checkbox" name="bora" value="bora"><em> 5000 - 1000</em></p>
</form>
Hope i explain clearly...Thanks in advance for the help!
I implemented the submission of multiple checkbox value by using php as follows. It works perfectly for me and hope that it will work for everyone .
Here I use session variable so that once I checked Samsung it will persist even if I checked apple . Hope this example will help you.
Add javascript function submit() in onchange