Jump to content

checkbox


vadder85
 Share

Recommended Posts

i have one problem here...hope someone can help me..below is my checkbox code<input type="checkbox" name="checkbox1 value="1">so my question is,how could i modify my coding to make it return value 1 into my database if it is checked and return 0 if it is unchecked..tq...

Link to comment
Share on other sites

ok, add a qoute at the end of your name, and if you are in control of the recieving script and the recieving script is php:

<?php if(isset($_POST['nameofcheckbox'])){$checked=1;}else{$checked=0}?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...