[thelist] Can I do this in ASP?

Howard Cheng howcheng at ix.netcom.com
Tue Apr 9 11:59:01 CDT 2002


Sure you can do this, but the structure of your page should be different.

<%
' Initializations here

' Handle form submit
         ' Validate info

         ' If no errors, insert into db and redirect somewhere else

' If errors, display error message
%>
<html>
<form></form>
</html>
At 11:41 AM 4/9/2002 -0500, Rob Smith wrote:
><%
>check form for stuff
>spit errors if bad stuff
>%>
>
><form method="post" action="whatever.asp">stuff</form>
>
><%
>If all good stuff, insert in to DB
>response.redirect("there.asp")
>%>
>
>---- Or do I need to separate this action into several different pages?

::::::::::::::::::::::
Howard Cheng
howcheng at ix.netcom.com
AIM: bennyphoebe
ICQ: 47319315




More information about the thelist mailing list