How to load page

How to load page

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:
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
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
Advertisements
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
how to load pdf on html
how to load pdf on html  how to load pdf on html
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
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
How to load Arabic csv to MYSQL
How to load Arabic csv to MYSQL  I tried the following set session collation_database=utf8_general_ci; set session character_set_database=utf8 ; #SET NAMES utf8; #SET character_set_database=utf8; LOAD DATA local INFILE
How will you load a specific locale? - Java Beginners
How will you load a specific locale?  HI, Please tell me how to load a specific locale in Java program. Thanks   Hi Friend, You can use ResourceBundle.getBundle("Locale.UK"); For more information, visit
how many ways to load the class in java
how many ways to load the class in java  i know some ways to load the class. could plz tell the all the ways.    there r 3 ways to create objects. 1.by using new operator 2.clone() method 3.new Instance(). and some
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 to display a loading image. How to achieve this requirement. Thanks Manu  
How to load file from the directory in J2ME?
How to load file from the directory in J2ME?  Video player J2ME. I have a folder name "music". I want to display all file with extension is "*.mpg" on the List. How can I do it, plz help me
How to load elements from db when i press next.
How to load elements from db when i press next.  Hello , I am working... page. Hope you got my point , please help me, I am unable to understand how to do... but i want to show only 20 at the time and there will be 5 buttons for next page
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
how to load values of html form into an excel table using java servlet?
how to load values of html form into an excel table using java servlet?   i have written a java servlet program, which has a html form to be filled. after filling the form the servlet generates a receipt and the values should
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
Ajax Load
Ajaxload The ajaxload is a tool, which follow web2.0 standard. Due to slow Internet speed or delay some times data takes time to load. At this time we... web page
ModuleNotFoundError: No module named 'load'
ModuleNotFoundError: No module named 'load'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'load' How to remove the ModuleNotFoundError: No module named 'load' error
nsstring load from file
nsstring load from file  Hi, How to load file data into NSString object? Example of nsstring load from file, basically the html file data into NSSTring object. Thanks
UIWebview load url
UIWebview load url  How to load website url in UIWebview? Tell me code for UIWebview load url of a website Thanks...: //Load web view data NSString *strWebsiteUlr = [NSString stringWithFormat:@"http
how to load flash file in any browser through jsp using NetBeans IDE without embed tag
how to load flash file in any browser through jsp using NetBeans IDE without embed tag  I am trying to load a flash file in broser from local disk... to load resources:Unable to load resources:#2035 can anyone help me to resolve
jQuery Load Content
jQuery Load Content       In this section you will learn how to load content of a text file using jQuery and show it on the use browser. This example shows you how to load the content
Load UIImage from URL
Load UIImage from URL  Load UIImage from URL
Load Icon Image Exception
Load Icon Image Exception  Load Icon Image Exception
How can I dynamically load user-entered data as content of jquery dialog?
How can I dynamically load user-entered data as content of jquery dialog?  Hi I can't seem to work my javascript. I cannot seem to figure out whatelse I am missing. Kindly guide me how to solve my project please. I cannot make
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'
'django-load' How to remove the ModuleNotFoundError: No module named 'django-load' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'django-load'  Hi, My Python
ModuleNotFoundError: No module named 'lazy-load'
'lazy-load' How to remove the ModuleNotFoundError: No module named 'lazy-load' error? Thanks   Hi, In your python environment you...ModuleNotFoundError: No module named 'lazy-load'  Hi, My Python
ModuleNotFoundError: No module named 'load-confounds'
named 'load-confounds' How to remove the ModuleNotFoundError: No module named 'load-confounds' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'load-confounds'  Hi, My
ModuleNotFoundError: No module named 'load-remote'
'load-remote' How to remove the ModuleNotFoundError: No module named 'load-remote' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'load-remote'  Hi, My Python
ModuleNotFoundError: No module named 'load_resources'
named 'load_resources' How to remove the ModuleNotFoundError: No module named 'load_resources' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'load_resources'  Hi, My
ModuleNotFoundError: No module named 'shinkenplugins.plugins.http_load'
: ModuleNotFoundError: No module named 'shinkenplugins.plugins.http_load' How to remove the ModuleNotFoundError: No module named 'shinkenplugins.plugins.http_load'...ModuleNotFoundError: No module named 'shinkenplugins.plugins.http_load
ModuleNotFoundError: No module named 'cfg-load'
-load' How to remove the ModuleNotFoundError: No module named 'cfg-load...ModuleNotFoundError: No module named 'cfg-load'  Hi, My Python... to install padas library. You can install cfg-load python with following
ModuleNotFoundError: No module named 'django-load'
'django-load' How to remove the ModuleNotFoundError: No module named 'django-load' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'django-load'  Hi, My Python
ModuleNotFoundError: No module named 'gil-load'
-load' How to remove the ModuleNotFoundError: No module named 'gil-load...ModuleNotFoundError: No module named 'gil-load'  Hi, My Python... to install padas library. You can install gil-load python with following
ModuleNotFoundError: No module named 'k-load'
-load' How to remove the ModuleNotFoundError: No module named 'k-load'...ModuleNotFoundError: No module named 'k-load'  Hi, My Python... to install padas library. You can install k-load python with following command
javascript window.addeventlistener load
javascript window.addeventlistener load  How to load window.addeventlistener in JavaScript?   window.addEventListener('load', function() { var b = document.getElementById('box'), xbox = b.offsetWidth / 2
Form Should not load
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... box after submitting or the form should not load again. Thanks in adbance
XML load problem - XML
XML load problem  I have load the xml document in javascript.getting error like ActiveXObject is undefined.Can you help me?  Hi friend... function load(){ var loadXML = new ActiveXObject
Load on Startup - JSP-Servlet
Load on Startup  Hi, Can anybody explain the exact use of load-on-startup tag. Where exactly we have to write. Thanks, Naveen  ... of a deployment descriptor is used to load a servlet file when the server starts instead
Hibernate Session Load
This section contain description of Hibernate session load
load and upload. - JSP-Servlet
load and upload.  dear sir, plz give me the sol for my problem.i m waiting for u r reply. why u not replying ..   Hi Friend, We haven't remember your problem. So please send it again. Thanks
ModuleNotFoundError: No module named 'Apache_Metrics_CPU_LOAD'
: No module named 'Apache_Metrics_CPU_LOAD' How to remove the ModuleNotFoundError: No module named 'Apache_Metrics_CPU_LOAD' error? Thanks   ...ModuleNotFoundError: No module named 'Apache_Metrics_CPU_LOAD'  Hi
ModuleNotFoundError: No module named 'django-smart-load-tag'
: No module named 'django-smart-load-tag' How to remove the ModuleNotFoundError: No module named 'django-smart-load-tag' error? Thanks   Hi...ModuleNotFoundError: No module named 'django-smart-load-tag'  Hi
ModuleNotFoundError: No module named 'google-pandas-load'
named 'google-pandas-load' How to remove the ModuleNotFoundError: No module named 'google-pandas-load' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'google-pandas-load'  Hi, My
ModuleNotFoundError: No module named 'google-pandas-load'
named 'google-pandas-load' How to remove the ModuleNotFoundError: No module named 'google-pandas-load' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'google-pandas-load'  Hi, My
ModuleNotFoundError: No module named 'lbdata_load_tools'
named 'lbdata_load_tools' How to remove the ModuleNotFoundError: No module named 'lbdata_load_tools' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'lbdata_load_tools'  Hi, My
ModuleNotFoundError: No module named 'lbdata_load_tools'
named 'lbdata_load_tools' How to remove the ModuleNotFoundError: No module named 'lbdata_load_tools' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'lbdata_load_tools'  Hi, My
ModuleNotFoundError: No module named 'lbdata_load_tools'
named 'lbdata_load_tools' How to remove the ModuleNotFoundError: No module named 'lbdata_load_tools' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'lbdata_load_tools'  Hi, My
ModuleNotFoundError: No module named 'load-feature-pipeline'
: No module named 'load-feature-pipeline' How to remove the ModuleNotFoundError: No module named 'load-feature-pipeline' error? Thanks   Hi...ModuleNotFoundError: No module named 'load-feature-pipeline'  Hi
ModuleNotFoundError: No module named 'morepath-rest-dump-load'
: No module named 'morepath-rest-dump-load' How to remove the ModuleNotFoundError: No module named 'morepath-rest-dump-load' error? Thanks   ...ModuleNotFoundError: No module named 'morepath-rest-dump-load'  Hi

Ads