|
-
May 3rd, 2001, 03:10 AM
#1
Thread Starter
Lively Member
-
May 3rd, 2001, 03:32 AM
#2
Addicted Member
Its a long time since I have done something ASP. Still..
After the submission of form1 store the value recieved from the form in a temporary table with an id for submitter (a sessionid or username or something like that). This temporary table would be updated based on the other form data and when the data from the last form is submitted the previous form data can be retrieved from the temporary table and insert into the actual table.
Hope this helps
-
May 3rd, 2001, 03:33 AM
#3
Addicted Member
An Idea:
Page1 submit to page2, in page2 retrieve the values into hidden fields, then submit to page3, retrieve all fields into hidden fields, then submit to page4 and yo now have all the fields in one form, submit to the database.
André
-
May 3rd, 2001, 07:08 AM
#4
Lively Member
i have tried using <%request.form("firstname")%> in the value of my hiiden field on the forth form..
Shouldn't it be <%=request.form("firstname")%> (the '=')
Yip... it tried it .. it works the '=' is neccesary.
Without the '=' it will not give you an error but just a blank value!
To test it.
Make some of your hidden fields, 'text' (visible) then you will see the values. (just a tip for debugging in the future)
Last edited by Sundance Kid; May 3rd, 2001 at 07:12 AM.
-
May 3rd, 2001, 08:33 AM
#5
Frenzied Member
Here is another alternative...
Code:
<html>
<head></head>
<body>
<form name='Page1' method='POST' action='Page2.asp'>
<input type='text' name='foo'>
<input type='sumbit'>
</form>
</body>
</html>
Code:
<%
Session("foo") = Request.Form("foo")
%>
<html>
<head></head>
<body>
<form name='Page2' method='POST' action='Page3.asp'>
<input type='text' name='bar'>
<input type='submit'>
</form>
</body>
</html>
Code:
<%
'This is the last ASP after all four forms.
'Each form has set the previous form's submissions into Session
'All I have to do his grab the previous page from Request
mySQL = Session("foo") & Request.Form("bar")
Response.Write(mySQLResult)
%>
I hope that makes sense. I think the session object has a 20 minute timeout. I don't know how it interacts with SSL. It is a step below actually setting cookies on the client's browser.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|