[eluser]black.Blank[/eluser]
is there any other way on how i can rewrite the following sample code?
Code:
if(in_array('sample1',$sample)
$samp = 1;
else if(!in_array('sample1',$sample)
$samp = 0;
if(in_array('sample2',$sample)
$samp2 = 1;
else if(!in_array('sample2',$sample)
$samp2 = 0;
if the checkbox is ticked, then the value for the corresponding field in the dbase will be 1 else 0.