Added a check to make sure this file was loaded through WordPress. If not, bail and tell them how sucky they are.
Changed function name
Inline documentation
Show error and success messages after submitting
Pass default values for function params
Check for additional parameters being posted and warn the user that they're being shady. Also, add a success message when everything is awesome.