webpage which client can enter his or her name

webpage which client can enter his or her name

1.if client has entered name he must click on submit button,new webpage should appear which welcome him or her with either one of following messages: "good morning,[name]!","good afternoon,[name]!".greeting should depend on the current time.

View Answers

September 11, 2012 at 11:36 AM

Here is a html code that accepts name from the user and display the name with welcome message.

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"]);
document.write("Welcome " + firstname);
</script>
</html>

September 11, 2012 at 2:01 PM

thnx for the help it realy does work.









Related Tutorials/Questions & Answers:
webpage which client can enter his or her name
webpage which client can enter his or her name   1.if client has entered name he must click on submit button,new webpage should appear which welcome him or her with either one of following messages: "good morning,[name]!","good
webpage which client can enter his or her name
webpage which client can enter his or her name   1.if client has entered name he must click on submit button,new webpage should appear which welcome him or her with either one of following messages: "good morning,[name]!","good
Advertisements
select employee name based on his/her designation in selectbox
select employee name based on his/her designation in selectbox  i have two select boxes in one select box i am enter designation when i select designation then display employee name another select box based on designation
Write a program using JSP that enables any student to change his/her address.
Write a program using JSP that enables any student to change his/her address.  Write a program using JSP that enables any student to change his/her address
it can be submitted by hitting ENTER
it can be submitted by hitting ENTER  How do I make a form so it can be submitted by hitting ENTER
webpage
webpage  design a webpage student database using forms and frameset
Web Hosting Guide. Introduction to Domain Name
? If we have to send a letter to someone, we must know his/her mailing address... Yahoo.comADS_TO_REPLACE_4 Domain name is case insensitive, which means Google.com... How to Choose your Domain Name? You can take the name of domain on your
Reading Request Information
in a JSP page. Consider an html page that prompts the user to enter his/her name, let's call it getname.htm. Here is the code of the html file..." size="5">Enter your name:<
How can I paginate a table which has shown in a div through Ajax in client side without using database
How can I paginate a table which has shown in a div through Ajax in client side without using database   The table is shown by calculation in a PHP script file so The data not store any where so please give me the way to paginate
write aprogram which shows the use of hashset and iterator (through enter the value through keyboard )
write aprogram which shows the use of hashset and iterator (through enter the value through keyboard )  write aprogram which shows the use of hashset and iterator (through enter the value through keyboard
ModuleNotFoundError: No module named 'her'
library. You can install her python with following command: pip install...ModuleNotFoundError: No module named 'her'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'her
Top 5 Ad Networks which can be used with Google Adsense
Top 5 Ad Networks which can be used with Google Adsense - Use the ads from... is discussing the Ad Networks which can be used with Adsense Ads on their website... website. There are many Ad Networks which can be used with Adsense and increase
how to convert php webpage to jpg file/take screenshot from client side
how to convert php webpage to jpg file/take screenshot from client side  how to convert php webpage to jpg file/take screenshot from client side
copy something from a webpage to my webpage
copy something from a webpage to my webpage  How can I copy something from a webpage to my webpage
Which java can i download?
Which java can i download?  Hello, i'm a beginner on java. Which java can i download for to exercise with my codes? Thanks in advance.   ... a window, which want me to insert this "Cartdrige". But no file was open, what can i
I want to know the given class name exists in which jar file?
I want to know the given class name exists in which jar file?   I want to know the given class name exists in which jar file? C:\Program Files\IBM... the name of the jar file where 'com.rational.ft.util.debug' class exists
webpage capture
webpage capture   webpage capture source code using jsps and servlets
ModuleNotFoundError: No module named 'webpage'
to install padas library. You can install webpage python with following command...ModuleNotFoundError: No module named 'webpage'  Hi, My Python... 'webpage' How to remove the ModuleNotFoundError: No module named 'webpage
ModuleNotFoundError: No module named 'webpage'
to install padas library. You can install webpage python with following command...ModuleNotFoundError: No module named 'webpage'  Hi, My Python... 'webpage' How to remove the ModuleNotFoundError: No module named 'webpage
ModuleNotFoundError: No module named 'his'
library. You can install his python with following command: pip install...ModuleNotFoundError: No module named 'his'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'his
make a webpage
make a webpage   I will provide you some basic requirements that you... with headers Textboxes: Name of a device (plain text) IP Address of a device (with dot..., the entered values should go into the table Table: It should have 4 columns NAME IP
Name
all the name of that character E.g User give character "B". The program shows all the human names which starts from B.   Java show all names... { System.out.println("Enter character: "); int input=System.in.read
Last modified time of a webpage
Last modified time of a webpage  how can we get the last modified time of a webpage using java
webpage
ModuleNotFoundError: No module named 'webpage-reader'
environment you have to install padas library. You can install webpage-reader...ModuleNotFoundError: No module named 'webpage-reader'  Hi, My... named 'webpage-reader' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'webpage-reader'
environment you have to install padas library. You can install webpage-reader...ModuleNotFoundError: No module named 'webpage-reader'  Hi, My... named 'webpage-reader' How to remove the ModuleNotFoundError: No module named
Update Profile
update his/her User Id in the form. Password: User can updated the password here...; The Update Profile page allows the logged in user to update his/her profile. Form allows user to change his/her password. If the user wants to update
need solution to get file name from path which should give by user
need solution to get file name from path which should give by user  how do i write a program in java that i should get file path from arguments.currently this code creates the file at d:\ but i need to get this file name
Showing div at the center of the webpage
Showing div at the center of the webpage  Showing div at the center of the webpage
can we use class in jsp which implements interface
can we use class in jsp which implements interface   can we use class in jsp which implements interface
Can not input value into text field which use sx:datetimepicker
Can not input value into text field which use sx:datetimepicker  I am...:datetimepicker name="info.date1" id="date1" displayFormat="yyyyMMdd HHmmss... to other element, that value is lost. Thus, i can not input value by hands
Can not input value into text field which use sx:datetimepicker
Can not input value into text field which use sx:datetimepicker  I am using lib: struts2-dojo-plugin-2.2.3.1.jar. My source is below: I input... and then i move focus to other element, that value is lost. Thus, i can not input
how to send the content of jtextarea from netbeans IDE to webpage's textarea in java
how to send the content of jtextarea from netbeans IDE to webpage's textarea in java   Hi, i m interested to send the content of my jtextarea which i have developed in netbeans IDE to the webpage's textarea. how can i do
Web Service - Which files we have to give to client and how they will use that
Web Service - Which files we have to give to client and how they will use... this web service or want to give it to client , for that which files i have to give. 2) In client side how they will use that, and how they call method from
after entering details in reg page,n enter the submit button,how can v store the data in db, n hw can v retrive the data frm db in jsp
after entering details in reg page,n enter the submit button,how can v store the data in db, n hw can v retrive the data frm db in jsp  i ve creted registration page n login page. after entering details in reg page,n enter
ModuleNotFoundError: No module named 'app-his-migrator'
python environment you have to install padas library. You can install app-his...ModuleNotFoundError: No module named 'app-his-migrator'  Hi, My... named 'app-his-migrator' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'app-his-migrator'
python environment you have to install padas library. You can install app-his...ModuleNotFoundError: No module named 'app-his-migrator'  Hi, My... named 'app-his-migrator' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'app-his-migrator'
python environment you have to install padas library. You can install app-his...ModuleNotFoundError: No module named 'app-his-migrator'  Hi, My... named 'app-his-migrator' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'app-his-migrator'
python environment you have to install padas library. You can install app-his...ModuleNotFoundError: No module named 'app-his-migrator'  Hi, My... named 'app-his-migrator' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'odoo8-addon-medical-his'
ModuleNotFoundError: No module named 'odoo8-addon-medical-his'  Hi...: No module named 'odoo8-addon-medical-his' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-medical-his' error? Thanks   
Java program to get class name without package
example which describes you that how you can get the class name without package...;= java.lang.String.class; now we can get the full class name with the method... Java program to get class name without package 
displaying a physical webpage with frames in iframe
displaying a physical webpage with frames in iframe  i have iframe in my webpage, i have done the coding part for browsing the folders and viewing... sources.i tried to display a sample webpage without frames and it was a success
How to handle enter key in javascript
How to handle enter key in javascript  Can any one tell me how to handle the enter key event on a Button in HTML. Like in my simple HTML page i want to submit the form even if user hits the enter key from keyboard instead
Program to Ignore Space and Enter ?!
Program to Ignore Space and Enter ?!  Hi, dear friend i wont to write program to enter many statements, if i use Space and Enter in the Run Time must be delete the space and ignore the Enter ..for example if i entered
ModuleNotFoundError: No module named 'enter-leave'
you have to install padas library. You can install enter-leave python...ModuleNotFoundError: No module named 'enter-leave'  Hi, My Python... 'enter-leave' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'wechat_enter'
environment you have to install padas library. You can install wechat_enter python...ModuleNotFoundError: No module named 'wechat_enter'  Hi, My Python... 'wechat_enter' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'enter-leave'
you have to install padas library. You can install enter-leave python...ModuleNotFoundError: No module named 'enter-leave'  Hi, My Python... 'enter-leave' How to remove the ModuleNotFoundError: No module named '
displaying a calendar of only current month in jsp on webpage using javascript
displaying a calendar of only current month in jsp on webpage using javascript  how can we display a calendar of only current month in jsp on webpage using javascript
How to print a webpage without url and date in jsp ?
How to print a webpage without url and date in jsp ?  How to print a webpage without url and date in jsp
Allow to Enter only numeric data.
that enter only numeric data. So how this can be done? what will be the code...Allow to Enter only numeric data.  hi....... I want to ask that in my project i have a textfield where user is going to enter the data so i want

Ads