pass data using post between html pages
I want to pass values between 2 html pages using POST method. I have lot of data to be passed to 2nd page and cannot use GET. My issue is I dont know how to pass values to second html page and how do i display username on page 2.
<h4>Enter your name</h4>
<form name="form1" method="post" action="page2.html">
<input type="text" name="username">
<input type="submit" onclick="submitForm()">
....... dont know how to display username entered on page1.html here...
If in introduce aspx , I can read post values in code but can I still pass load HTML from aspx code behind and pass these values to HTML ?
Yes you can also do it with aspx - its a server side language.
you can spit your data into form inputs on the server, and read those inputs on the client.
you could also tuck everything into a JSONp bundle in a <script> tag.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)