the rouble is the form is in a template and used across the whole site. i have placed the php in the body of the page so it will carry across all the pages and the error is pointing to the line that is locked