Question:
get input data from one web page to another page. what is html code?
zin
2010-09-15 07:39:36 UTC
I am building a website. There is a form in a webpage in which there are input fields. ex name etc. When the form is submitted, I want to open another webpage in which the input data in 'name' field is retrieved. Can somebody help me for the html code to get the intput data from one page in another ? Thank you in advance.
Three answers:
?
2010-09-15 07:55:15 UTC
Processing data from an HTML form can not be done with HTML.



You either need to use a server side scripting language (such as PHP), or a client side scripting language (such as Javascript).



In general it is better to use a server side scripting language because that will work for all visitors. Perhaps 10% of people have javascript turned off. Consequently javascript based form processing will not work for them.
Nancy
2016-04-13 03:31:10 UTC
dynamic web pages don't work this way if you don't wanna involve a db and store your data in why don't you write your users comments into a file separated by empty lines then when you display your page read the file and append all comments to your HTML response good luck
Stas S
2010-09-15 08:01:47 UTC
You can pass walues in query string and then parse it on new page.

You also can open new window (window.open()) before submit and from new window read the values in parent window using opener object. Opener is the reference to parent window.



Something like this:



Parent window





blah blah blah ...





Child window







This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...