Chris,
To assist you further, I have outlined how to implement this code (it is
pretty much a matter of cutting and pasting the whole code below into your
web page). Your page should look something like:
<html>
<title>
.......
<title>
<head>......</head>
<body>
<script language="javascript" type="text/javascript"><!--
function calculate(what) {
for (var i=1,answer=0;i<9;i++)
answer += what.elements['textField' + i].value - 0;
what.answer.value = answer;
}
//--></script>
<form>
<input type="text" name="textField1"/><br/>
<input type="text" name="textField2"/><br/>
<input type="text" name="textField3"/><br/>
<input type="text" name="textField4"/><br/>
<input type="text" name="textField5"/><br/>
<input type="text" name="textField6"/><br/>
<input type="text" name="textField7"/><br/>
<input type="text" name="textField8"/><br/>
<input type="text" name="answer"/>
<input type="button" value="Calcuate" onClick="calculate(this.form)">
</form>
</body>
</html>
For extra input types in the actual form above, add your own lines and
rename the fiends (the "name=" bit) by copying and pasting the last existing
line ("textfield8") and rename it to the next in the sequence i.e.
"textfield9" and so on.
To ensure the script adds all your extra fields (should you add any), change
the bit of code in the "For" statement that says "i<9" and instead of "9"
replace this with the number of fields you have in your page (that is the
last number, in the name of the fields in the sequence, of
"name="textfield...."
If you don't need some of the existing fields, simply delete those lines
from the page.
Hopefully this will allow you to make some use of the script to test it for
your purposes. All it does is simply add up numbers, that you, or the user
types in each text field; which sounds pretty much like what you're asking.
Andrew.
ChrisLouie said:
Thank you for your more specific information that I still find very
unhelpful. It seems to me when you to a place asking for help and people
take
the time to reply to someone's question they will take the time to offer a
little explanation instead of just sending some random page with a bunch
of
letters.
I always try and help myself but obviously came to a roadblock and like
past
time found most everyone here helpful. This is the first time I have come
across someone so rude. I do thank you though... now I know when I see
your
name on a reply to anyonoe's question to not even bother reading.
Stefan B Rusynko said:
No more arrogant than you asking for help and not even trying to help
yourself
- try
http://irt.org/script/856.htm
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
| Since I'm so new to this is it possible for you to be a little more
specific?
| It seems a little arrogant on your part to just send me a webpage that
lists
| so many "How to's...."
|
| Thank you.
|
| "Stefan B Rusynko" wrote:
|
| > See
http://irt.org/script/form.htm#6
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > | Hi,
| > |
| > | I need to tally evaluation information taken down and was wondering
if there
| > | is a way to make a form that you can enter the information in to
and it will
| > | tally it up for you?
| >
| >
| >