Support

Account

Home Forums Front-end Issues How to get the label and value of checkbox ? Reply To: How to get the label and value of checkbox ?

  • You’re echoing the label but not the value, you just need to echo $v in your code

    
    if( $value ) {
    	foreach( $value as $v ) { 
    		echo $v,':',$choices[ $v ]; 
    	} 
    }