Re: Multiple options from one form
by Frank Boumphrey <bckman(at)ix.netcom.com>
|
| Date: |
Sun, 14 Apr 2002 23:58:09 -0400 |
| To: |
"Debbie O'Meara" <domeara(at)QuixNet.net>, hwg-techniques(at)hwg.org |
| References: |
debbie |
| |
todo: View
Thread,
Original
|
|
There are two ways to handle this:
1. send all the information along to the two pages in question (using some
server side scripting language such as PHP, ASP etc.) and populate hidden
input elements*.
2. (IMO the best way) Submit the form info from page one and stoore it
somehow on the server before they go to the second page.
*If you don't have access to serverside scripting, it is possible pass all
the form values as a query string, and parse that string on the client using
JavaScript, but expect to spend at least half a day debugging it and getting
it to work!
HTH,
Frank
Latest Book XML.NET Developer's Guide -From Syngress press
---- Original Message -----
From: "Debbie O'Meara" <domeara(at)QuixNet.net>
To: <hwg-techniques(at)hwg.org>
Sent: Saturday, April 13, 2002 5:56 PM
Subject: Multiple options from one form
> Hi all--
>
> First, a working copy of the page in question, if you need it:
> http://www.visionsites.net/html/sandranahan/html/mquestionrev.html This
is
> just a working copy, okay? :)
>
> Now the problem:
>
> Clients fill out the questionnaire to receive a report. They can pay for
> the report immediately by credit card, or phone/fax/mail in their payment.
> So I need to allow for either possibility.
>
> The way I'm thinking this would work would be two links at the bottom of
the
> questionnaire (call that page1,) saying essentially "pay now" or "pay
> later." The "pay now" link would go to the secure credit card page
(page2a)
> and submit the form along with the credit card info. "The "pay later"
would
> go to a page listing the phone/mail/fax option (page2b), and submit the
form
> from a button at the bottom of the page.
>
> What I don't know how to do is get the Submit function on pages 2a and 2b
to
> also submit the info from page1. Or am I even approaching this the right
> way?
>
> Thanks,
>
> Debbie
>
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.