Right. If you don't know about the danger, you really should do a quick read on it. With it enabled, I could overwrite any variable setting by adding it to the URL, i.e. "?login=true" or something similar.
Turn register_globals Off, and use code such as this:
if(!empty($_POST['submit'])) $submit = $_POST['submit']; else $submit = '';
or, using the ternary operator in conjunction with the error surpressor:
$submit = ((@$_POST['submit']) ? $_POST['submit'] : '');
Code to fix scripts depending on register_globals has been posted numerous times all over this board in many different flavors; do a seach on 'register_globals' and see what you find.