# Insert

**URL:** <https://forum.kirupa.com/t/insert/326802>\
**Category:** programming\
**Created:** [January 13, 2012, 2:25am UTC](https://forum.kirupa.com/t/insert/326802 "2012-01-13T02:25:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrEmerald](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@MrEmerald](https://forum.kirupa.com/u/MrEmerald)\
**Post date:** [January 13, 2012, 2:25am UTC](https://forum.kirupa.com/t/insert/326802/1 "2012-01-13T02:25:38Z")

</div>

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…
