i'm obtaining wordpress development and reading through it digging into wordpress. i've the code below in functions.php

add_action('admin_menu', 'addAmazonAffiliateOptions');

function addAmazonAffiliateOptions() {
  add_options_page('Global Custom Fields', 'Global Custom Fields', 8, 'functions', 'editGlobalCustomFields');

function editGlobalCustomFields() { ?>
  <div class="wrap">
    <h2>Global Custom Fields</h2>
    <form action="options.php" method="post">
      <?php wp_nonce_field('update_options'); ?>
        <label for="amazonId"><strong>Amazon ID</strong></label>
        <input type="text" name="amazonId" value="<?php echo get_option('amazonId'); ?>" />
        <input type="submit" name="submit" value="Update Options" />
        <input type="hidden" name="action" value="update" />
        <input type="hidden" name="page_options" value="amazonId" />
<?php }

after i attempt to save the choices, i recieve

Your make an effort to edit your configurations has unsuccessful.

how do you debug may be in wordpress?

I believe you have to be using register_setting() - the WordPress core and API has transformed quite substantially since that book was released.

Browse the codex on WordPress 2.7+ for adding plugin options pages.