vadder85 Posted April 19, 2006 Share Posted April 19, 2006 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 More sharing options...
Little Goat Posted April 19, 2006 Share Posted April 19, 2006 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 More sharing options...
vadder85 Posted April 19, 2006 Author Share Posted April 19, 2006 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}?> <{POST_SNAPBACK}> anyone know how to do it in asp? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now