Home Answers Viewqa HTML webpage which client can enter his or her name

 
 


Thembekile
webpage which client can enter his or her name
2 Answer(s)      8 months ago
Posted in : HTML

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 Pages:
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
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
Web Hosting Guide. Introduction to Domain Name
to send a letter to someone, we must know his/her mailing address. In the same way... Linux.org Yahoo.com Domain name is case insensitive, which.... How to Choose your Domain Name? You can take the name of domain on your company
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
Reading Request Information
in a JSP page. Consider an html page that prompts the user to enter his/her...;5">Enter your name:</font><input... of form is "showname.jsp", which displays the name entered
How to get client's address in a servlet
() of the ServletRequest interface which returns IP address of the client...;blue">Please Enter your Full Name here:</font></b><br>...How to get client's address in a servlet  
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
Servlet Error Message based on user input
; which renders an input field to enter the name of the user. Here is the code... to enter the name. If the entered name exists in the database its displays... Enter Your Name To check the error massege</font><br><br>
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
JSP - Problem of displaying result at webpage
JSP - Problem of displaying result at webpage  Can anyone please help to solve my problem below. My webpage has problem in displaying result position... <input name="ADSLNO" type="text" />
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
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
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
find the largest number enter by user - Java Interview Questions
); System.out.println("Enter Name: "); name = in.nextLine(); System.out.println...find the largest number enter by user  sorry for not stating clearly my question. i want to know how to find the largest number enter by user
Update Profile
. Description of the fields: User Id: User can update his/her User Id in the form...; 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
Save file on Client Machine - Development process
://boserver:9090/AI where boserver is the name of server machine, now when a client... to save the file created by my application on the client machine how can i do...Save file on Client Machine  Hi my application is running on main
Online Java Training Courses
as it is flexible and offers learners a choice to learn according to his/her... and learners are getting enrolled for online courses so that they can hone.... Rose India, a established name in Java training has trained various students
Set the mapping name
action mappings can be created one with ?name' attribute and one without and the same Action class name can be used.  What are the disadvantages...; * We can also use an Alias for the method name and map
Open InternetExplorer Webpage with Java - Java Beginners
Open InternetExplorer Webpage with Java  Hello Sir I want to Open my webpage from swing application when I Click On "VISIT US" Boutton then website will be display How I can Create it on Button Click.  Hi Friend
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
Java client posting to a servlet - Development process
Java client posting to a servlet  Hi, I would like to create a java client that post to a servlet. I am trying to test out a webserver and would... friend, "getData.html" New Page 1 Login Please enter your
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
Server calling of .exe file in the client
Server calling of .exe file in the client   I have a requirement with java webapplication. We are using jboss as appserver on Linux machine. How can I call a .exe file from client machine? I want to run .exe from webpage like
RMI Client And RMI Server Implementation
application provides the mechanism by which the server and the client communicate... to associate a name with a remote object. The client looks up the remote object...; In this class, the ?receiveMessage()? method, which is called from the remote client
Example of struts2.2.1 client side validation.
Example of struts2.2.1 client side validation. In this example, you will see how to implement client side validation in struts2 application. We  can easily implement client side validation in struts2. If we adds validate="
Client Side validation in Struts 2 application
_doLoginClientSideValidation() which is generated for client side validation... Client Side validation in Struts 2 application   ... that will generate Java Script code for client side validation. In the last section we
How to register domain name
to remember and there is always a generic name no matter for which purpose websites.... Enter the name or phrase of the domain name you would like... for the name. If the name is already taken, enter a new name
enable users to enter names - Java Beginners
enable users to enter names  this is the code for tic tac toe game, i want users can save their name as player X and player O, but I do not know how...= JOptionPane.showInputDialog(null,"Enter Name (Player X or Player O)"); try{ File file = new File
webpage
webpage  design a webpage student database using forms and frameset
Client-Server Architecture
;    Client-server architecture can be considered...; and a client machine where server has some resources that can be shared by different... and an electrical socket can be considered as a interaction between client and server is just
Honeymoon in Agra
to take her to a place where you can further strengthen your bonding with her for life. Take her on a romantic odyssey to the city of Taj. Honeymoon in Agra... love and romance Taj Mahal. The couples can draw inspiration from the Emperor
http Client Authentication
http Client Authentication  hi friends, i am trying a java API using HTTPCLient post method. in which i am getting output having some authentication problem. can any one please help me to solve this problem. please , please
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
Overriding jaxb binding at client side?
Overriding jaxb binding at client side?  How can override jaxb binding at client side? I have a webservice client which creates xmlgregoriancalendar object instead of date. How can I override it at client side?   I
Client-Server Architecture
;    Client-server architecture can be considered...; and a client machine where server has some resources that can be shared by different... and an electrical socket can be considered as a interaction between client and server is just
Java filename without extension
. The method getName() returns the name of the file which is then used...Java filename without extension In his section, you will learn how to get the file name without extension. Description of code: In one of the previous
Client Side Coding
for creating dynamic web pages, which contents change frequently. Client-side... Client Side Coding       Here, the client side coding refers to the code scripted for the end
to enter into a particular page only if the username,password and listbox value mtches
to enter into a particular page only if the username,password and listbox value mtches  I have created a login page in which a user could enter in to his page only if the username, password and the listbox value(user type
JSP to client side - JSP-Servlet
JSP to client side  Hi I have a JSP(graph.jsp) page which calls a servlet and get the output. The output is a JSON object. I want to use the same to plot a graph in flotr. How can I use the same
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
Cheking birthday excel sheet everyday and Sending Automated MAIL to birthday boy on his birthday
boy on his birthday  hi all I am toatally new to java programming can... boy on his b'day from list of all b'day people. steps : 1) It should search for the birthday date from the excel which is already created and if birth date
Chapter 5. Client View of an Entity
client view can also be mapped to non-Java client environments... Chapter 5. Client View of an EntityPrev Part I. Exam Objectives Next     Chapter 5. Client View
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
Combine Name
for a first name and one for a last name. When the button is pressed, it formats them in the result field in the standard last name comma first name style..._combine); p.add(new JLabel("Combined Name")); p.add(_combinedName
Domain Name
. Every domain name has a suffix that indicates which top-level domain (TLD... than one domain name can be mapped to the same Internet address. This allows...The domain name system (DNS) is a series of letters and numbers
Client Auto Refresh in Servlets
Client Auto Refresh in Servlets       This section illustrates you how client gets auto refresh. We are providing you an example which explains you clearly. In the example, We have created
Programming - Flip Name
Java: Programming - Flip Name   Name ______________________ Write a method, flipName, which has a string parameter which contains a name in last, first format. It should return the name in first last format as a string
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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.