one more issue
Thanks Eric,
I have corrected the error and now I seem to have one more problem. I now get the following error code on the confirm page when submitted.
Fatal error: Call to undefined function: session_commit() in /xxx/httpdocs/auth_confirm.php on line 567