So, what you are saying is your page is not getting redirected to the "ok page" right?
What i am betting is that you are actually getting an error on the page, but the error reporting on your server is turned off.
Is this your own server? If so, you need to check to make sure you have this line in you php.ini file:
error_reporting = E_ALL & ~E_NOTICE
If not, I think you can turn it on through your script. Try this:
error_reporting(E_ALL ^ E_NOTICE);
at the top of your script.....