
problem with response.redirect
i creat a web form (htm file) who submit to an ASP vbs page.
this is my asp page code. here:
<%
dim erreur
erreur=0
if Request.Form ("titre_du_document")="" then erreur=1
if Request.Form ("demandeur")="" then erreur=1
if Request.Form ("telephone")="" then erreur=1
if Request.Form ("PROVENANCE")="" then erreur=1
if Request.Form ("unite_administrative")="" then erreur=1
if Request.Form ("personne_ressource")="" then erreur=1
if Request.Form ("delai_de_livraison")="" then erreur=1
if Request.Form ("date")="" then erreur=1
response.write erreur
if erreur=1 then Response.Redirect("incorrect.htm")
%>
<HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
and then this error occur ==>
Response object error 'ASP 0156 : 80004005'
Header Error
/communications/traduction/facteur.asp, line 23
The HTTP headers are already written to the client browser. Any HTTP
header modifications must be made before writing page content.
can someone help ?
Thank