wiert
07-28-2002, 07:20 PM
See this script (found it on this site)
<script language="JavaScript">
<!--
var name=prompt("Enter Your Name, Please.","name");
var today = new Date ()
var hrs = today.getHours();
document.writeln("<b><font size=4 face='Comic Sans MS'>");
document.writeln("<b>");
if (hrs <= 12)
document.write("Good Morning "+name+'!');
else if (hrs <= 18)
document.write("Good Afternoon "+name+'!');
else
document.write("Good Evening "+name+'!'); document.writeln("<br>");
// -->
</script>
How can i sent the input of the prompt as an input form? I want to use a prompt(1) as a question, followed by a prompt(2). Then i want to print the input of the prompts (document.write) and finaly sent the input by a post action. But how can i sent the inpyut of the prompts?
<script language="JavaScript">
<!--
var name=prompt("Enter Your Name, Please.","name");
var today = new Date ()
var hrs = today.getHours();
document.writeln("<b><font size=4 face='Comic Sans MS'>");
document.writeln("<b>");
if (hrs <= 12)
document.write("Good Morning "+name+'!');
else if (hrs <= 18)
document.write("Good Afternoon "+name+'!');
else
document.write("Good Evening "+name+'!'); document.writeln("<br>");
// -->
</script>
How can i sent the input of the prompt as an input form? I want to use a prompt(1) as a question, followed by a prompt(2). Then i want to print the input of the prompts (document.write) and finaly sent the input by a post action. But how can i sent the inpyut of the prompts?