|
 |
asp_cdo thread: emailing forms on multiple pages
Message #1 by "Andrew Knox" <knoxy@t...> on Tue, 25 Apr 2000 12:42:25
|
|
Hi,
I was wondering if anyone could help me out on trying to go about creating
a multiple page form which, at the end should display all the info they've
entered and then they press the submit button and the results should be
sent via email to me. I'm guessing each page will pass on a querystring
containing all the info they've entered, and on the submit page, the
CDONTS.Newmail will be called.
Thanks,
Andrew
Message #2 by "Stef" <sne@s...> on Tue, 25 Apr 2000 13:29:51
|
|
Hello,
A idea is to store all your informations in a session variable.
At the end, on your submit page, you can retreive everything you want.
Session("your_info1")=Request.Form("info1_from_form")
Stef.
Message #3 by Daniel Walker <danielw@w...> on Tue, 25 Apr 2000 14:14:12 +0100
|
|
Hmm, could do, but not the most scaleable solution. Session variables are a
really neat idea which happen to also be In League With The Daleks: try not
to use them, if possible.
Andrew, how much data are you thinking of accumulating in total? You could
pass it around in the header using the POST method, and reading it using
the Form collection. There are limits to the physical length of what can be
posted between forms, but I think it's something like 40 characters, or
something - much more than a GEt would allow you. My colleague Ian Nutt
knows, but he's not here, so I can ask him.
Daniel Walker
-----Original Message-----
From: Stef
Sent: Tuesday, April 25, 2000 14:30
To: ASP CDO
Subject: [asp_cdo] Re: emailing forms on multiple pages
Hello,
A idea is to store all your informations in a session variable.
At the end, on your submit page, you can retreive everything you want.
Session("your_info1")=Request.Form("info1_from_form")
Stef.
---
Hi,
I was wondering if anyone could help me out on trying to go about creating
a multiple page form which, at the end should display all the info they've
entered and then they press the submit button and the results should be
sent via email to me. I'm guessing each page will pass on a querystring
containing all the info they've entered, and on the submit page, the
CDONTS.Newmail will be called.
Thanks,
Andrew
Message #4 by "Andrew Knox" <knoxy@t...> on Wed, 26 Apr 2000 10:31:51
|
|
About 10 pages with about 10 fields on each... that's a worse case
scenario, but I want to code it in case in gets bigger. Therefore I suppose
the Form collection should be used... how do i get the program to remember
the stuff on page 1 when i get to page 10?
Thanks,
Andrew
Message #5 by "Rahul Mishra" <rahulm@p...> on Wed, 26 Apr 2000 12:04:41 +0530
|
|
Hi,
Avoid session variables as far as possible as these variables may not work
correctly if cookies are disabled
Follow the following link for "pros & cons of session variables"
http://www.4guysfromrolla.com/webtech/092098-2.shtml
Use hidden variables which are carried over the forms like this.
Below the line to be pasted in 2nd form
<input type="hidden" name="username" value="<%=Request.Form("username")%>">
where username is text field of 1st form
Best Regards
Rahul
p.s.
There is a limit of 2000 characters when you pass the result using ? and
retrieve using querystring object.
----- Original Message -----
From: Andrew Knox <knoxy@t...>
To: ASP CDO <asp_cdo@p...>
Sent: Tuesday, April 25, 2000 12:42 PM
Subject: [asp_cdo] emailing forms on multiple pages
> Hi,
> I was wondering if anyone could help me out on trying to go about creating
> a multiple page form which, at the end should display all the info they've
> entered and then they press the submit button and the results should be
> sent via email to me. I'm guessing each page will pass on a querystring
> containing all the info they've entered, and on the submit page, the
> CDONTS.Newmail will be called.
>
> Thanks,
> Andrew
>
> ---
> You are currently subscribed to asp_cdo
>
>
Message #6 by "Anand" <anand@s...> on Wed, 26 Apr 2000 19:22:22 +0800
|
|
Use session variables so that u can access the value of the variable in page
10 from page 1. Or else use cookies if u r planning to conserve the
resources of u'r server.
-----Original Message-----
From: Andrew Knox
Sent: Wednesday, April 26, 2000 10:32 AM
To: ASP CDO
Subject: [asp_cdo] Re: emailing forms on multiple pages
About 10 pages with about 10 fields on each... that's a worse case
scenario, but I want to code it in case in gets bigger. Therefore I suppose
the Form collection should be used... how do i get the program to remember
the stuff on page 1 when i get to page 10?
Thanks,
Andrew
---
You are currently subscribed to asp_cdo
|
|
 |