load next page after submitting

load next page after submitting

how to submit the details and how to go the next page after submitting.please clarify my doubt I don't know how to submit details.

View Answers

April 13, 2012 at 4:39 PM

1)page1.html:

<html>
<form type=get action="page2.html">
<table>
<tr>
<td>First Name:</td>
<td><input type=text name=firstname size=10></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type=text name=lastname size=10></td>
</tr>
<tr>
<td>Age:</td>
<td><input type=text name=age size=10></td>
</tr>
<tr>
<td colspan=2><input type=submit value="Submit">
</td>
</tr>
</table>
</form>
</html>

2)page2.html:

<html>
<script LANGUAGE="JavaScript">
function getParams() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++) {
nameVal = pairs[i].split('=');
params[nameVal[0]] = nameVal[1];
}
}
return params;
}
params = getParams();
firstname = unescape(params["firstname"]);
lastname = unescape(params["lastname"]);
age = unescape(params["age"]);
document.write("firstname = " + firstname + "<br>");
document.write("lastname = " + lastname + "<br>");
document.write("age = " + age + "<br>");
</script>
</html>









Related Tutorials/Questions & Answers:
jsp page submitting
jsp page submitting  whenever i am submitting the jsp page it downloads some unknown file on tomcat server
How to prevent the page refresh while submitting the form??
How to prevent the page refresh while submitting the form??  Hi. Requirement: There are two drop down boxes.Dropdown2 should load corresponding to the select of Dropdown1. Im hitting a db for this every time.Hence the page loads
Advertisements
please give me solution how to display next page after 20 records ? - JSP-Servlet
please give me solution how to display next page after 20 records ?  ...; if(row==4){ document.links("next"+document.request.preRow.value).disabled... previous next 11 12 13 14 15
how to genrate login id and password after submitting the sign up form?
how to genrate login id and password after submitting the sign up form?  i m working on a online voting project in that i have a user sign up form so i want 2 knw that after user submit all the details i that sign up form than
session on page load
session on page load  holding session on page load and reload..   <?php session_start(); if (!isset($_SESSION['arr']['counter'])) { $SESSION['arr']['counter'] = 0; } else { $SESSION['arr']['counter']++; } var_dump
date in textbox on page load
date in textbox on page load   i want to insret the current date in textbox but this code dosen't work and the value of text box will be blank... into textbox on page load. <html> <script> function addDate(){ date = new
pass to next page
pass to next page  I am working on a school project no server client side only. 1st page you enter data such as name, address, DoB etc.(textboxes & dropdowns) after clicking submit the data needs to be displayed in a frame
How to load elements from db when i press next.
How to load elements from db when i press next.  Hello , I am working... but i want to show only 20 at the time and there will be 5 buttons for next page means when i click next, the next 20 books will be displayed from db on the same
optimze page load - Java Beginners
optimze page load  Hi there My code everything works fine. But i...(){ if (document.getElementById("page_txf") != null) { document.getElementById("page_txf").value
display all the values on next page
values are inserting in the database and i am moving on another page after doing some functionality on next page i am returning on my first page and i want...display all the values on next page  i am inserting values
PHP Previous Next Page - PHP
PHP Previous Next Page  PHP Previous Next PageIs it possible to create dynamic navigation using PHP and MYSQL? DO I need to create a class to create the next, previous buttons in PHP? I?m digging for a small as well as handy code
to display NEXT and previous option after 10 entries in java
to display NEXT and previous option after 10 entries in java  As after jsp code we refer to java for connectivity and i want that directly only 10 entries will be open and next there will be pages. so what would i do for coding
How to Display Next question from database after clicking Next Button using "Arraylist concept"
How to Display Next question from database after clicking Next Button using "Arraylist concept"  </tr> <%if (pageName.equals("1")) {%> <tr> <td> <div style
keeping log of page load - Java Beginners
keeping log of page load  Hello, I have a project and I need... on is developed by someone else. The problem with this JSP page is that sometime it loads very nicely but sometimes it doesn't load proper way and it times out. I
Reload the page after ValueChangeListener is invoked
Reload the page after ValueChangeListener is invoked  How to reload the page after ValueChangeListener is invoked
how to load value in dropdown list after selecting value from first dropdown list using javascript
how to load value in dropdown list after selecting value from first dropdown list using javascript  how to load value in dropdown list after selecting value from first dropdown list using javascript
pass radio button values to next page
pass radio button values to next page  how to pass selected radio button values which coming from mysql database to next page using php. Please show me with examples
Get radio button value after submiting page
Get radio button value after submiting page  Radio buttons are dynamically generated.After selecting radio button & submitting the page , the value of the selected radio button get displayed in that jsp page. <
Submitting Web site to search engine
Web Sites Once your web site is running, the next job for you...;ADS_TO_REPLACE_1 Before submitting your web site to search please... search engines manually or use professional paid services for submitting your
pre Page load display an image loading - JSP-Servlet
pre Page load display an image loading  hi, We have requirement some pages are loading very slow, while the page is processing we need...;Hi Friend, Do you want to display image before loading page? Please clarify
how to load a table of data from oracle, to a jsp page using hashmap.
how to load a table of data from oracle, to a jsp page using hashmap.  I have a jsp page which ask for project ID,team name,member name according to this data i have to retrieve their details from the database(oracle). I have
after logout the page is going back - Java Beginners
after logout the page is going back  Dear friends can any one help me urgently, how to restrict our jsp pages from going back after logout. i 've did... give details "How to logout the page" to solve the problem. Thanks
Form Should not load
box after submitting or the form should not load again. Thanks in adbance...Form Should not load  I have a jsp page which has textbox and dropdown box, when I submit it, the page reloads and the textbox and dropdown box also
staying in same page after deliting arow in jsp page - JSP-Servlet
staying in same page after deliting arow in jsp page  Hello Sir, I want to stay back in current jsp page after deleting row in jsp table. how can i do this. need help from you. thanks, nandini  Hi friend
change database values when click next button on jsp page
change database values when click next button on jsp page  How to retrive database values rondomly and display jsp page ,when user click next and previous bottons change the values on jsp page
How to get table row contents into next jsp page
contents in the next jsp page and display them Thanks Vikas   The given...How to get table row contents into next jsp page  Hi, I have a 30... select a particular radio button and select on sub menu item , it goes to next jsp
automatically move next page when data fetched from database is stored in text field
from database and entered the next page should load without the user clicking on enter button. pls suggest me how to move next page without user clicking...automatically move next page when data fetched from database is stored in text
How to use filter to redirect to login page after session timeout.
How to use filter to redirect to login page after session timeout.  hello Sir, I have to make a web application in which i have to give... then automatically it should redirect to login page from where user has
How to use filter to redirect to login page after session timeout.
How to use filter to redirect to login page after session timeout.  hello Sir, I have to make a web application in which i have to give... then automatically it should redirect to login page from where user has
How to use filter to redirect to login page after session timeout
How to use filter to redirect to login page after session timeout  hello Sir, I have to make a web application in which i have to give session... then automatically it should redirect to login page from where user has to login again
To Retain the values entered in the text box after submit in jsp page
To Retain the values entered in the text box after submit in jsp page   i am working on a jsp pge which has many text boxes and one dynamic drop... after submit has been done ? coz when data is displayed then the values entered
Ajax Load
Internet speed or delay some times data takes time to load. At this time we.... After that you can download the image and can use this image directly in your web page
How to prevent from navigating to a page after reaching Login page using back button?
How to prevent from navigating to a page after reaching Login page using back button?  Hi sir, I have created 2 pages, 1) Lo gin Page 2)Page with link to open pdf files When i lo-gin,it takes me to 2nd page where
jQuery Ajax load request
jQuery Ajax load request  Hi, How to use jQuery to send the request on server to load data in web page? Thanks   Hi, In the jQuery Load... and then load the data in web page. Thanks
ModuleNotFoundError: No module named 'load'
install load After the installation of load python library...ModuleNotFoundError: No module named 'load'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'load
is it possible to display page in full frame...after dividing page into frames...and is it possible to close frame
is it possible to display page in full frame...after dividing page into frames...and is it possible to close frame  ... full page view is it possible?? is there any option to close the frame
Displaying checked checkbox in same page as well as print on another page ....also add next pages cheches checkbox into previous list
as well as i aslo include next page's selected checkbox in display list on same...Displaying checked checkbox in same page as well as print on another page ....also add next pages cheches checkbox into previous list  1
Not Submitting Data - Design concepts & design patterns
Not Submitting Data  Hello Deepak , Thanks for replying me....but m not understanding ur code my problems is on designing web site.I am designing... page but i cant give two actions on form tag...... i give a some code below
Load UIImage from URL
Load UIImage from URL  Load UIImage from URL
how to load pdf on html
how to load pdf on html  how to load pdf on html
Load Icon Image Exception
Load Icon Image Exception  Load Icon Image Exception
how to design a jsp page via link which will expire after 3 days if not use?
how to design a jsp page via link which will expire after 3 days if not use?   Link is in a mail and if changes occur it will update in database
how to design a jsp page via link which will expire after 3 days if not use?
how to design a jsp page via link which will expire after 3 days if not use?   Link is in a mail and if changes occur it will update in database
J2me Map load error
J2me Map load error  Hi , i am making a POC to load google map in my mobile,now i m getting the address of location by its lattitude and longitude in web page , but thing is i wana to store in my net beans emulator , its showing
ModuleNotFoundError: No module named 'django-load'
with following command: pip install django-load After the installation...ModuleNotFoundError: No module named 'django-load'  Hi, My Python... 'django-load' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'lazy-load'
command: pip install lazy-load After the installation of lazy-load...ModuleNotFoundError: No module named 'lazy-load'  Hi, My Python... 'lazy-load' How to remove the ModuleNotFoundError: No module named 'lazy
ModuleNotFoundError: No module named 'load_resources'
python with following command: pip install load_resources After...ModuleNotFoundError: No module named 'load_resources'  Hi, My... named 'load_resources' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'shinkenplugins.plugins.http_load'
with following command: pip install shinkenplugins.plugins.http_load After...ModuleNotFoundError: No module named 'shinkenplugins.plugins.http_load' ...: ModuleNotFoundError: No module named 'shinkenplugins.plugins.http_load' How to remove
ModuleNotFoundError: No module named 'django-load'
with following command: pip install django-load After the installation...ModuleNotFoundError: No module named 'django-load'  Hi, My Python... 'django-load' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'k-load'
: pip install k-load After the installation of k-load python library...ModuleNotFoundError: No module named 'k-load'  Hi, My Python...-load' How to remove the ModuleNotFoundError: No module named 'k-load'

Ads