Adjusting your error_reporting level is just a hack--not a solution to the real problem(s).
The first one: it's throwing the error because the "submit" value is not defined in the $POST array. Either the page was not called via POST, or it's missing from the form. Check for the existence of the variable before attempting to use it. Something like:
if (isset($_POST['submit'])) { /* do stuff */ }
The second error is most likely because the original script relied on register_globals being turned on. See http://www.php.net/register_globals