on the first page:
the "points=" bit is where the number of pionts is sent to the next page. On page 2 it is the same place but slightly more complex as it has to take into account what the user got for the first question.Code:... location.href = "quiz2.html?points=1" //Go here, note the bit after the question mark, thats the query string } else { location.href = "quiz2.html?points=0" //If they were wrong go here, not the query string now too. ...
BTW, this quiz could also be made all on one page, that would make it much easier to code as ou don't have to worry about query strings.
Just reply if you want it like that.





Reply With Quote