如何调试'save'== $ _REQUEST ['action'],'reset'== $ _REQUEST ['action'],$ _REQUEST ['saved']和$ _REQUEST ['reset']

I followed this tutorial http://net.tutsplus.com/tutorials/wordpress/how-to-create-a-better-wordpress-options-panel/

Everything does what it's suppose to do. However, when I turn DEBUG to TRUE, I get the following errors:

Notice: Undefined index: action in -- This line:

if ( 'save'== $_REQUEST['action'] ) {

Notice: Undefined index: action in -- This line:

else if( 'reset'== $_REQUEST['action'] ){

Notice: Undefined index: saved in -- This line:

if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';

AND Notice: Undefined index: reset in -- This line:

if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';

Naturally, I've made a lot of research on this to try and fix it myself, but nothing really helped/worked.

Someone said you have to use the settings API but didn't give any information on how to do that.

So, how do I debug those errors? Your help would be appreciated!

use isset($_REQUEST['whatever']) to evaluate if the variable is set, if not, then return or something else.