Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KevinK: **** Previous page

Status
Not open for further replies.

NevG

Programmer
Oct 10, 2000
162
GB
Previous page being a completely different page. Probably an index page or something [sig][/sig]
 
There are two ways that spring to mind:

1. Use Response.redirect("thispage.asp") to transfer the user to different page after you finished processing the form
Code:
<%
  'Process form stuff
   response.redirect(&quot;myNewPage.asp&quot;)
%>
-or-

2. I normally do it this way:

Write your asp page so that it processes the form variables (if there was POSTed or GETted info) and then displays the &quot;HTML&quot; page e.g.
Code:
<%
  
  If request.ServerVariables(&quot;Content_Length&quot;) <> 0 then
        'Process POSTed form stuff here
        'Only processed if there was POSTed info  
  End If

%>

<HTML>
  // Normal HTML stuff here
</HTML>

HTH,

Kevin [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top