Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing data from one form to another

Status
Not open for further replies.

mawilliams

Technical User
Jun 20, 2003
30
GB
I have a simple form. When it has been submitted I want the data that has been typed into one textfield to be copied to 2 textfields in the next form, which is a seperate .html file.

Any ideas?

 
u cant do that with plain HTML u have to use ASP/PHP etc...

Known is handfull, Unknown is worldfull
 
Cheers for that lebisol, I thought there was a way to do it with Java.

But I am new to Java and am having a little trouble with the code you directed me to.
I have a page called "form.html" which has a form in it. When the user has typed his name into the textfield and pressed submit, I want the name he typed into the textfield load into another textfield on a document called "form2.html".

How would I alter the code to make that happen?

Your help is much appreciated, I'm finding Java a little hard to get my head around.
 
Cheers Lebisol, that was a great help, got it working a treat. Just one more question though. Is it possible to send the information in the first form to me via email (using formmail or similar), then pass it onto the next page?

Basically I have form that needs to be completed, the user then needs to enter a code of their choice in a textfield, the data sent to me, then they move onto the next page, which is actually a payment form for paypal, but I need the code they typed in to be populated in a textfield in that form.
 
Hello williams!
I have not really used "plain" HTML mailers but I see no resoin why adding a few hidden form fields wound't work.
which maling script are you using?
All the best!

> need more info?
:: don't click HERE ::
 
I haven't really decided yet.....I've used the CGI script "Formmail" before, so I was thinking of using the same again. But haven't really got around to that stage yet. How would the hidden form fields work?
 
well ...it depends on the script of the mailer but in general approach...perhaps even without hidden fields:

Start.html{form}----> MailMe.html{dynamically populated form + OnLoad Mailing script}

- regular form that submits needed fields into the next page (the one that u did )and then on that page (eg. MailMe.html) use "OnLoad" function that executes your mailing aspect of it while the other script will grab the info and stick back in the new form field as in example above.
Again, I would have to see the "mail" code and see how to mix it up in one smooth process.
As ::vbkris:: said, all this is much easier if u have access to ASP,PHP,JSP - dynamic page support but it is definetly duable!
All the best!


> need more info?
:: don't click HERE ::
 
ah!!, why dint i think of that before, thanks...

Known is handfull, Unknown is worldfull
 
Of course, you could also use ColdFusion, which is designed to integrate with DreamWeaver.
 
Really? I've never looked at Coldfusion, how does that work?
 
"Of course, you could also use ColdFusion, which is designed to integrate with DreamWeaver"
--U HAVE TO BE KIDDING me.....u suggested this poor guy to PAY for ColdFusion server just so he can mail things????
If u have a windows machine u have ASP hence Jmail or CDONTS or any toher mailing component that is free!!!!
DW is made to integrate with ASP,PHP,JSP,CFM......ColdFucion being the most expensive server platform.
U can download & insall FREE PHP support and use their mail components.
Anyway,
All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top