Link to home
Start Free TrialLog in
Avatar of morya
morya

asked on

Putting form data from one form to another form

I have a form.  When a person fills it out I want that data to populate some fields in a different form.

What is the quick and easy way to do this?

Michael
Avatar of ianand
ianand

There are ways to do it using a back end tools, like ASP etc. but on the clients side I doubt there is any avaliable thing which can do this.

1. You can try to use dhtml in the same page and hide the previoud data and put the new data.

2. Else, Open a new window with a handle and use window.document handle to write to the new window.

Hope this will help you.
If you want any specific code ,please specify.
Avatar of morya

ASKER

I don't know asp.  Would it be something I could just patch in the html code?

I'm not sure what you mean with using a handle in a new window.

Could you explain?

Michael
x=window.open('xyz.html','Title,"...");
Here x is the handle for the new window.
What you have to do is build up your complete page based on x.document.write
Javascript. This is generally used for some small display of help but not for a full fledged web page( Though you may use it).

If you are not using any server side contents ( ASP, Perl etc. ) then apart from already mentioned you can also try
it with
1.  cookies. Build a cookie in parent form and read it in the new form.
2.  Transfer the data as a parameter in the href and use substring of the href script using javascript.

If you tell me the code Maybe I can help you better.
Anand
Easiest way would be to use JavaScript which would be relatively easy to do.
Avatar of morya

ASKER

rhinosaur,

Do you have any java script code or point me to some?
ASKER CERTIFIED SOLUTION
Avatar of rhinosaur
rhinosaur

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial