><< What script is causing this error?
>
>The login form come up fine. The ACTION is set to go to checklogin.asp.
>
>If I leave the user name field blank, hit the continue button, it calls checklogin.asp and displayes my custom error message. I have a HREF tag to allow them to go back to the page.
>
>If I put a name in the field, checklogin.asp gives me the error at the line:
>
> Response.Redirect "
http://web1/scripts/myHome.asp"
>
>Again, the error is the HTTP Header error...
>
>Thanks
Okay, I see now. You can't do a Response.Redirect if the page headers have already been written. If you want to redirect a user in the middle of a page, you have to set Response.Buffer = True at the beginning of the page. When you want to redirect the user you can then call Response.clear, then Response.Redirect. If you want to sent the HTML string that is buffered in the Response Buffer to the client, call Response.Flush.
Tim Westmoreland
Software Engineer
Skyline Technologies, Inc.
"Upper classes are a nation's past; the middle class is its future." - Ayn Rand, Russian-born author (1905-1982).