Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



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

Have Programming Question? Ask it here!
 
 
 


Thembekile
webpage which client can enter his or her name
2 Answer(s)      a year and 7 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.


Advertisement
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
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
webpage
webpage  design a webpage student database using forms and frameset
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
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
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
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
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
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
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
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
webpage capture
webpage capture   webpage capture source code using jsps and servlets
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
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
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
Showing div at the center of the webpage
Showing div at the center of the webpage  Showing div at the center of the webpage
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
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
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
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
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
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
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
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 getName(). It can... Java program to get class name without package 
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
I want to change my user name on your website ,how can i do this
I want to change my user name on your website ,how can i do this  I want to change my user name on your website ,how can i do this   You can create another account very easily with different username
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" />
i want to protect mysql database table which user can not view to table and can not copy my table till then us
i want to protect mysql database table which user can not view to table and can... table which user can not view to table and can not copy my table till then user do not put table password. neither user and programmer can not delete table nor take
i want to protect mysql database table which user can not view to table and can not copy my table till then us
i want to protect mysql database table which user can not view to table and can... table which user can not view to table and can not copy my table till then user do not put table password. neither user and programmer can not delete table nor take
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
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
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
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
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  
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
it is a linux program is there anyone who can help me out with it?
it is a linux program is there anyone who can help me out with it?  Write a Bash script that prompts the user for a user-ID and displays the corresponding user√Ę‚?¨‚?Ęs login name, owner√Ę‚?¨‚?Ęs name, and his/her home directory
Parent child windows relationships when webpage is accesssed through a hyperlink.
Parent child windows relationships when webpage is accesssed through a hyperlink.  A particular session timeout functionality works when a webpage is loaded. The webpage has parent/child windows. This timeout functionality works
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
who is client
who is client   tell me who is client is management
Accessing MS ACCESS databse using a HTML webpage [created using Javascript]
pressing the button - 'Submit'. the webpage includes fields like Name, Age, Sex...Accessing MS ACCESS databse using a HTML webpage [created using Javascript... be displayed in a webpage after click the button - 'show details'. Could you pls help me
Client Interview
Client Interview  Hi, I am kumar i am having client round in polaries client is a BANK. how to face client interview. what are the expected questions from CITI
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
Blocking a user when he enters his password worng for three times ??
Blocking a user when he enters his password worng for three times ??  ... Loginval.java. And i want add more security to my login page such as if any user enters his password wrong foe three times .. his account should be block for a day ? how
Advertisements
 

 

 

DMCA.com