How can I get around this: I have a page that runs through a set of subroutines, the last one being a checkbox. I haev a onChange javascript action to report the data, but then I want to start over with the form(the data has been written to the DB). When I just call the main() sub again everything goes nuts. Here is the main():
sub main()
classNumber = classNumber + 1
call getDepartment
if depTrue = 1 then
call getCourse
end if
if couTrue = 1 then
call getSection
end if
if secTrue = 1 then
call getRecommended
end if
if recTrue = 1 then
formState = 1
end if
call writeDB
After writeDB runs, I want to start completly over with the form. but everytime I call main agian the form freaks out.
I think a response.redirect might work, but wouldn't I then lose the database transaction?
sub main()
classNumber = classNumber + 1
call getDepartment
if depTrue = 1 then
call getCourse
end if
if couTrue = 1 then
call getSection
end if
if secTrue = 1 then
call getRecommended
end if
if recTrue = 1 then
formState = 1
end if
call writeDB
After writeDB runs, I want to start completly over with the form. but everytime I call main agian the form freaks out.
I think a response.redirect might work, but wouldn't I then lose the database transaction?