Your script has a slight vulnerability if the client's configuration enables 'register globals'. Malicious users can craft the page's header to fit their needs.
Replace:With:PHP Code:$header .= "Location: "; /* Sets header */
PHP Code:$header = "Location: "; /* Sets header */
