In other words, your script depended upon the register_globals directive which has long since been deprecated due to security exploits.
I would also recommend changing the short tags '<?' in your script to the full '<?php' tags as the former has also long since been deprecated.
EDIT: Since we're talking so much about security exploits... You should never place user-supplied data directly into a SQL query. Instead, sanitize it with a function such as [man]mysql_real_escape_string/man else you're leaving yourself vulnerable to SQL injection attacks.
Also, if $POST['delete'] doesn't exist, code such as if($POST['delete']) will generate errors. Instead, use [man]isset/man or [man]empty/man to check if the variable isn't set/is empty.