Store data temprory and send to mysql data

0 M Ahmad · February 19, 2015
I have a problem in this picture you see that when a product information is entered then add order button is pressed and order is shown below but problem is that when add order button is pressed then data is directly stored in database and i want to store this data in php array or javascript array or localstorage and when user click on save button after adding several order all orders data is send to database one time./images/forum/upload/2015-02-19/a94922be30e22da053f613258e702f6a.png

Post a Reply


Oldest  Newest  Rating
0 Mitch Mullvain · February 23, 2015
Put them in POST variables. They act like get variables and will be saved temporarily on the page. It will act as an invisible url variable, but if you leave the page, it erases data. I assume you want something of that sort.

You can echo out all set post variables and then on save, store to the database.
+1 Mohamad Mirohamadi · February 24, 2015
put your data in  $_SESSION as array and you can pass them between pages
  • 1



Server-side, HTML embedded scripting language used to create dynamic Web pages.