while bWeb = true do
//PLACE YOUR LOOP OF WHAT TO DO IN HERE
//OR YOU CAN USE A FOR LOOP TO LOOP THRU THE DATA
for i := 1 to MAX do
//PLACE YOUR WEBPAGESUBMIT() ACTION HERE
A good rule of thumb that I like to use is WEBPAGESTORECONTEXT() this function stores the content. So what you could do is assign a variable to each
WEBPAGESUBMIT() and use the WEBPAGESTORECONTENT() to call the number out of hContext. Try using one of these this might not be the correct code that you want but it will get you in the ballpark.
//place your functions and data here