Issue on Checkbox with Custom Option Page

… using this code in
index.php the result is “null”

Since the code referenced is var_dump($input_examples); that means that $input_examples hasn’t been set or it out of scope where you are trying to use it. You will need to add …

$input_examples = get_option('price_display_options'); // maybe not the right key

… to your code before this line:

if( $input_examples['checkbox_contactprice'] == '1' ) {

I am guessing at the option name but you get the idea.