Insert

My script has a form that I can click submit and after it does all the calculations, it displays the output on the next page. I then give the choice to go back, or save the data into the database but when they click save the variables are all undefined… I know why it is undefined, because there is no data after hitting another submit button, but I cannot find a way to fix it…