• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Regarding HTML Form

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I want to impliment a simple three html pages i.e Page1 has some input fields such as firstName,lastName,address I have created a Page1 with these fields and a form and on the form action as
<form action="Page2.html">
<input id="firstName" name="firstName" type="text"/>
<input id="firstName" name="firstName" type="text"/>
<input type="button" onclick="document.forms[0].submit()">
</form>

now how should i access these values on the page2 as i have to display these value on the next HTML page, e.g.
<table>
<tr><td colspan="2" align="left" valign="top" class="lists">First Name<label id="firstName"></label></td></tr>
</table>

i want to get access to the form object of page1 because from page2 i have to submit all these values again to page3.

Please help with this.

 
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are you doing with the data that you are getting? Do you process them? Is it ok if you use a webserver/servlet-container?
 
echarish Kumar
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cant use webserver/servlet-container as these are simple HTML pages, and have to simply display the values entered in page1 on page2 and than some values on the page3 as well. is it possible do this with JavaScript ?
 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It may be possible.

http://www.w3schools.com/jsref/prop_loc_search.asp

You may have to append and process the string.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic