You misunderstand. My script does not error out; the browser does. My script has always worked fine with no errors except that by the time it tries to redirect the browser is already confused. It is ns_getform that is causing the confusion, but not by throwing an error or returning incorrect data.