pass a form from web page to web page 
Author Message
 pass a form from web page to web page

I am trying to do a webpage that has 3 tabs at the top.
Each tab has a form where the user enters data.
(tab 'A' for Client Info, 'B' for Parent Info, 'C' for References)

When the user clicks 'A', they ONLY see the lines for Client Info.
When the user clicks 'B', they ONLY see the lines for Parent Info.
When the user clicks 'C', they ONLY see the lines for Reference Info.

These three parts comprise a whole record of an Access database.
"HOW" can I let the user jump from tab to tab and then be able to click
ADD RECORD or UPDATE RECORD and retain the info from the form
from web page to web page?

Can I pass an entire form from one page to another much like passing a
variable?
(ie: onclick="DoIt.asp"?info=2)???

This is stumping me.  Please help.



Wed, 10 Mar 2004 23:43:14 GMT  
 pass a form from web page to web page
Write each form's information to hidden fields in the new page's form; they
will be submitted to the next page with the new information:

=== A.asp ===
<form action="B.asp" method="post">
Client Info stuff:
<input name="Client" type="text" value="Client Info"><br>
<input type="submit" value="Parent Info">
</form>

=== B.asp ===
<form action="C.asp" method="post">
<input name="Client" type="hidden" value="<%= Request.Form("Client") %>">
Parent Info stuff:
<input name="Parent" type="text" value="Parent Info"><br>
<input type="submit" value="Reference Info">
</form>

=== C.asp ===
<form action="D.asp" method="post">
<input name="Client" type="hidden" value="<%= Request.Form("Client") %>">
<input name="Parent" type="hidden" value="<%= Request.Form("Parent") %>">
Reference Info stuff:
<input name="Reference" type="text" value="Reference Info"><br>
<input type="submit" name="Action" value="Add">
<input type="submit" name="Action" value="Update"><br>
</form>

=== D.asp ===
<pre>
   Client Info: <%= Request.Form("Client") %>
   Parent Info: <%= Request.Form("Parent") %>
Reference Info: <%= Request.Form("Reference") %>

        Action: <%= Request.Form("Action") %>
</pre>

--
When you live in the shadow of insanity, the appearance of another mind that
thinks and talks as yours does is something close to a blessed event. -R.
Pirsig

=-=-=
Steve
-=-=-


Quote:
> I am trying to do a webpage that has 3 tabs at the top.
> Each tab has a form where the user enters data.
> (tab 'A' for Client Info, 'B' for Parent Info, 'C' for References)

> When the user clicks 'A', they ONLY see the lines for Client Info.
> When the user clicks 'B', they ONLY see the lines for Parent Info.
> When the user clicks 'C', they ONLY see the lines for Reference Info.

> These three parts comprise a whole record of an Access database.
> "HOW" can I let the user jump from tab to tab and then be able to click
> ADD RECORD or UPDATE RECORD and retain the info from the form
> from web page to web page?

> Can I pass an entire form from one page to another much like passing a
> variable?
> (ie: onclick="DoIt.asp"?info=2)???

> This is stumping me.  Please help.



Thu, 11 Mar 2004 01:50:06 GMT  
 pass a form from web page to web page
It seems that on Sat, 22 Sep 2001 16:43:14 +0100, someone claiming to be

Quote:
> I am trying to do a webpage that has 3 tabs at the top. Each tab has a
> form where the user enters data. (tab 'A' for Client Info, 'B' for
> Parent Info, 'C' for References)

> When the user clicks 'A', they ONLY see the lines for Client Info. When
> the user clicks 'B', they ONLY see the lines for Parent Info. When the
> user clicks 'C', they ONLY see the lines for Reference Info.

> These three parts comprise a whole record of an Access database. "HOW"
> can I let the user jump from tab to tab and then be able to click ADD
> RECORD or UPDATE RECORD and retain the info from the form from web page
> to web page?

> Can I pass an entire form from one page to another much like passing a
> variable?
> (ie: onclick="DoIt.asp"?info=2)???

Submit the form to the other page and generate hidden fields using a
server side script to hold the data until it is sent back to the
origional.

--
David Dorward                                http://david.us-lot.org/
The only way to keep your health is to eat what you don't want, drink
what you don't like, and do what you'd rather not. -- Mark Twain



Thu, 11 Mar 2004 03:46:45 GMT  
 pass a form from web page to web page
thank you!  I'll give it a go...


Quote:
> It seems that on Sat, 22 Sep 2001 16:43:14 +0100, someone claiming to be

> > I am trying to do a webpage that has 3 tabs at the top. Each tab has a
> > form where the user enters data. (tab 'A' for Client Info, 'B' for
> > Parent Info, 'C' for References)

> > When the user clicks 'A', they ONLY see the lines for Client Info. When
> > the user clicks 'B', they ONLY see the lines for Parent Info. When the
> > user clicks 'C', they ONLY see the lines for Reference Info.

> > These three parts comprise a whole record of an Access database. "HOW"
> > can I let the user jump from tab to tab and then be able to click ADD
> > RECORD or UPDATE RECORD and retain the info from the form from web page
> > to web page?

> > Can I pass an entire form from one page to another much like passing a
> > variable?
> > (ie: onclick="DoIt.asp"?info=2)???

> Submit the form to the other page and generate hidden fields using a
> server side script to hold the data until it is sent back to the
> origional.

> --
> David Dorward                                http://david.us-lot.org/
> The only way to keep your health is to eat what you don't want, drink
> what you don't like, and do what you'd rather not. -- Mark Twain



Thu, 11 Mar 2004 07:41:57 GMT  
 pass a form from web page to web page
Brilliant.... thanks for taking the time to spell it out for me.


Quote:
> Write each form's information to hidden fields in the new page's form;
they
> will be submitted to the next page with the new information:

> === A.asp ===
> <form action="B.asp" method="post">
> Client Info stuff:
> <input name="Client" type="text" value="Client Info"><br>
> <input type="submit" value="Parent Info">
> </form>

> === B.asp ===
> <form action="C.asp" method="post">
> <input name="Client" type="hidden" value="<%= Request.Form("Client") %>">
> Parent Info stuff:
> <input name="Parent" type="text" value="Parent Info"><br>
> <input type="submit" value="Reference Info">
> </form>

> === C.asp ===
> <form action="D.asp" method="post">
> <input name="Client" type="hidden" value="<%= Request.Form("Client") %>">
> <input name="Parent" type="hidden" value="<%= Request.Form("Parent") %>">
> Reference Info stuff:
> <input name="Reference" type="text" value="Reference Info"><br>
> <input type="submit" name="Action" value="Add">
> <input type="submit" name="Action" value="Update"><br>
> </form>

> === D.asp ===
> <pre>
>    Client Info: <%= Request.Form("Client") %>
>    Parent Info: <%= Request.Form("Parent") %>
> Reference Info: <%= Request.Form("Reference") %>

>         Action: <%= Request.Form("Action") %>
> </pre>

> --
> When you live in the shadow of insanity, the appearance of another mind
that
> thinks and talks as yours does is something close to a blessed event. -R.
> Pirsig

> =-=-=
> Steve
> -=-=-



> > I am trying to do a webpage that has 3 tabs at the top.
> > Each tab has a form where the user enters data.
> > (tab 'A' for Client Info, 'B' for Parent Info, 'C' for References)

> > When the user clicks 'A', they ONLY see the lines for Client Info.
> > When the user clicks 'B', they ONLY see the lines for Parent Info.
> > When the user clicks 'C', they ONLY see the lines for Reference Info.

> > These three parts comprise a whole record of an Access database.
> > "HOW" can I let the user jump from tab to tab and then be able to click
> > ADD RECORD or UPDATE RECORD and retain the info from the form
> > from web page to web page?

> > Can I pass an entire form from one page to another much like passing a
> > variable?
> > (ie: onclick="DoIt.asp"?info=2)???

> > This is stumping me.  Please help.



Thu, 11 Mar 2004 07:43:11 GMT  
 pass a form from web page to web page
When a Form was submitted to another web page, all the controls in the
submitted form on the previous page will all be transfered to the second
page, and then on the second one, we can populate the info on the form by
invoking the Request.Form object.

Regards,



Thu, 11 Mar 2004 15:41:14 GMT  
 pass a form from web page to web page
Another alternative rather than storing all hidden variables in each of the
other pages is to use a single page for all of the tabs (with a single form
and javascript controlling which sections of HTML are displayed).  Two
advantages to using this method:  1) if a new field is added, only 1 page
will need to be modified and 2) this should be more efficient since it may
no longer be necessary to go back to the server whenever a different tab is
selected.

The only trick is that you will have to hide/show the appropriate
information whenever a different tab is selected (show/hide can be
accomplished with CSS applied to <SPAN> tags surrounding what was previously
each individual pages content) .

Good Luck.


Quote:
> I am trying to do a webpage that has 3 tabs at the top.
> Each tab has a form where the user enters data.
> (tab 'A' for Client Info, 'B' for Parent Info, 'C' for References)

> When the user clicks 'A', they ONLY see the lines for Client Info.
> When the user clicks 'B', they ONLY see the lines for Parent Info.
> When the user clicks 'C', they ONLY see the lines for Reference Info.

> These three parts comprise a whole record of an Access database.
> "HOW" can I let the user jump from tab to tab and then be able to click
> ADD RECORD or UPDATE RECORD and retain the info from the form
> from web page to web page?

> Can I pass an entire form from one page to another much like passing a
> variable?
> (ie: onclick="DoIt.asp"?info=2)???

> This is stumping me.  Please help.



Sun, 14 Mar 2004 10:59:28 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. pass a form from web page to web page

2. Passing variables from one web page to another web page using JavaScript

3. passing variable argument list from web page to web service (is it possible)

4. Pass username and pass to web page...

5. VB6 Form to Web Page Form Conversion

6. Size of web page in web browser object

7. Uploading a file Web Page to the Web Server

8. Printing a Web Page in Web Browser Control

9. Help saving web page with web control?

10. Pass Username and Password to a Web page

11. How do I pass an image to an ActiveX control in a web page

12. Passing variables from web page contents to VB6

 

 
Powered by phpBB® Forum Software