Example of what it looks like:
[url]http://img476.imageshack.us/img476/3783/129pb.png
I can get it to return the correct answer in the first box but not in the second button box.
Please help:
code:
<html>
<head>
<title>Questionnaire Page</title>
<script type=”text/javascript”>
/*The first funtion will (supposedly) take the surfer’s answer to the ice cream question,
e.g., “Mint chocalate chip”, and display “Mint Choclate chip is my favorite too!” in the messageBox.
The second function will (suposedly)take the surfer’s answer to the movie
question and display Titantic huh? I prefer the Marx Brothers.”
function printGreeting(){
document.question1.outputBox.value=
document.question1.icecreamBox.value + ” is my favorite too!”}
function printGreeting2(){
document.question2.outputBox.value=
document.question2.movieBox.value +” huh? I prefer the Marx Brothers.”}
</script>
</head>
<body>
<form id=”question1″ name=”question1″>
Please enter your favorite flavor of ice cream, then click the button:<br/>
<input type=”text”name=”icecreamBox”
size=”30″ /
</br>
<input type=”button”name=”b1″
value=”Click!” onclick=”printGreeting()”/>
</br>
<input type=”text” name=”outputBox”
size=”30″/>
<form id =”question1″ name”question1″>
Please enter your favorite movie of all time, then click the button:<br/>
<input type=”text” name= “movieBox”
size=”30″/
</br>
<input type=”button”name=”b1″
value=”Click!”onclick=”printGreeting2()”/>
<br/>
<input type=”text” name=”outputBox”
size=”30″/>
</form>
</body>
</html>
THanks in advance
Gina
Edit/Delete Message ?