Log in

View Full Version : <form action="Itself.asp" method="Post">



vb2java
10-25-2011, 09:53 PM
Hello,

Is it possible to have a form page (asp) process itself? In other words the user clicks a link on a static HTML page called "Register" which brings them to Register.asp:

<%@ Language=VBScript %>
<% Option Explicit %>
<!DOCTYPE etc. etc....>
<head></head>

<body>
<form action="Register.asp" method="Post">
txtbox, txtbox, pswbox... etc....
</form>

</body>

<!-- AND COULD IT BE PLACED OUTSIDE THE <BODY> TAG??? -->

<%
Set ASP = Request.(The Code that processes the form (ADO,FileSystemObject,etc.)).
%>


</html>

:confused:
Would this be too awkward? Perhaps it is possible but not recommended?

Elaboration from an experienced ASP 3.0 developer is greatly appreciated.

:)

Dee_Veloper
12-23-2011, 08:40 PM
Yes, having pages post back to themselves is a desireable and common practice.