If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I would do it your way it's just that in order to get totalPoints you take the credits a course is worth multiplied by the points you earned for it and THAT number is added to totalPoints http://userpages.umbc.edu/~ofek1/gpacalc.html:

Code:

totalPoints = totalPoints + (validNumber * numPoints);

Then the final GPA can be calculated:

Code:

finalGPA = totalPoints / totalCredits;

I suppose I'm so confused because I've never had to use objects like document.getElementById to retrieve data, which is what I'll have to do to access the forms. It's also difficult because it's not a fixed number of forms, the user can enter however many courses they're taking???

Btw Fang, you've been more helpful than dozens of websites and Yahoo! answers.

I'm trying to view the alert in your function that says the totalPoints when I submit the form but the error message from ValidateCredits appears instead and then it reloads the page? http://userpages.umbc.edu/~ofek1/gpa.html

Almost done, thank you! I also wrote the functions TotalCredits, CalculateGPA, and GenerateGradeReport. http://userpages.umbc.edu/~ofek1/gpa.html Though now when I call the function GenerateGradeReport, it correctly error checks but does not stop the submit if incorrect data is entered??? Btw, the final product will be http://userpages.umbc.edu/~ofek1/gc.html. Is there a way to have GenerateGradeReport write in the second frame, or will I need to learn ASP?