Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing input data between 2 forms.

 
Guy Yannick
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

How can pass the property from form 1 to form2 ?






Thanks
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

You'd have to add a hidden parameter to one form and use JavaScript to set the hidden value on form submission.
 
Guy Yannick
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Welcome to JavaRanch!

You'd have to add a hidden parameter to one form and use JavaScript to set the hidden value on form submission.


Thanks :)

It is possible to get the value without form submission ? by filling the input feld in form 1 ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no way to submit a value from one form through another form except through JavaScript.
 
Guy Yannick
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:There is no way to submit a value from one form through another form except through JavaScript.


Ok, youu means with the func onchange to set a htlm hidden in the another form ? any example ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not onchange, you'd want it to happen onsubmit. No example is necessary; there are a million examples of how to get and set form fields on the web.
 
Guy Yannick
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I resolved the issue using the concept explaining hier...

thanks for your input
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic