Check box Error
i'm trying insert checkbox value to ms sql database using php code...
check box code below..
<input type="checkbox" checked name="txtstatus" value="Yes" >
$RsStatus=$_POST['txtstatus'];
if ($RsStatus =="Yes"){
$stats=1;
}else{
$stats=0;
}
this code i use valedation
but if i click on that time database adding ok
if i click off that time following error coming
Notice: Undefined index: txtstatus in D:\jsal\php\companyprfadding.php on line 16
please help me
surendran
(Anything is Possible)
__________________
surendran
(Anything is Possible)
http://www.suren.info
http://ssuren.spaces.msn.com
|