Gazing into my crystal ball I observed "jp2code" <poojo.com/mail>
writing in news:#e*************@TK2MSFTNGP04.phx.gbl:
I've got a form that posts to itself when submitted.
Right now, after the form is submitted, the code checks that all of
its fields are valid, then processes the information. If all goes
well, visitors are then redirected using
Response.Redirect("thanks.asp").
What I'd like to do is replace Response.Redirect("thanks.asp") with
something more like the post that happens on the form so that
"thanks.asp" can display a summary of what was submitted.
Is there a way to do this? Can you call a "post" somehow from Classic
ASP?
I have not spent a lot of time with ASP, so it could be something
simple!
The way I deal with this is this:
1. Start the page off with issubmitted = false
2. Validate and do whatever posting to db I need to do.
3. Change issubmitted to true
HTML is something like:
<% if not issubmitted then%>
<form method="post" action="<%=request.servervariables("Script_name")% >">
<div>
<label for="name" id="name1">Name:</label<input type="text" name="name"
value="<%=name%>" id="name"><br>
<input type="submit" value="Submit">
</form>
<%else%>
<p>Thank you for submitting the information below:</p>
<dl>
<%For ix = 1 to Request.Form.Count
field = request.form.key(ix)
inputvalue = request.form.item(ix)%>
<dt><%=field%></dt>
<dd><%=inputvalue%></dd>
<%next%>
</dl>
<%end if%>
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share