This is a helpful WordPress options page, built using the Settings API, available since version 2.7.
To use it, simply copy this script into either your functions.php file, or a sub-file. If you choose the latter, just make sure that you include it from functions.php.
Once you have set your options, you can access them by doing:
Just replace "key" with the name of the options that you want. To view all the keys that are available, call print_r on $options: print_r($options).