
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.

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>

thnx for the help it realy does work.