Notices are not errors, and would be turned off on live hosting. To turn them off, you'll want to change the error_reporting settings in your php.ini.
Find the php.ini file in your localhost stuff - possibly in xampp\php\php.ini? Just pop it open with a normal text editor.
Search for "error_reporting". It probably won't be at the first location you find it, so search until you find it on a line by itself that doesn't start with a semi-color (;) -- lines with semi-colons are comments only, and are only there for reference. Anyway, it should be set to:
Code:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Make sure the line isn't be overwritten later in the file.
Save the file.
Restart XAMPP. This is important, because it won't recognizes changes to the file until you do.