I am trying to use a checkbox on Custom Option page by using Setting API. Every thing works fine at back-end and I can update the checkbox states by registering the settings.But when I would like to see the result on the page I am getting same result **" The checkbox has not been checked."** even so the checkboxed has been checked and updated on the options.php and my custom option page!

Here is what I have for updating and saving the checkbox state:

```
public  function contactprice_setting(){
    $options = get_option('price_display_options');
    $html = '<input type="checkbox" id="checkbox_contactprice" name="price_display_options[checkbox_contactprice]" value="1"' . checked( 1, $options['checkbox_contactprice'], false ) . '/>';  
    $html .= '<label for="checkbox_contactprice">Uncheck The Text Box</label>';
    echo $html;
    }

```

As I said this part works fine but when I try to output the result in index.php as:

```
<?php if( $input_examples['checkbox_contactprice'] == '1' ) { ?>  
    <p>The checkbox checkbox has been checked.</p>  
<?php } else { ?>  
    <p>The checkbox has not been checked.</p>  
<?php } // end if ?>

```

As I mentioned I am getting the **"The checkbox has not been checked."** in both checked or on checked situation. Can you please let me know why I am getting this?