Re: Replace punctuation in an associative array
"J.O. Aho" <[email protected]> Thu, 13 Apr 2023 14:26:19 +0200
| Newsgroups | comp.lang.php |
|---|---|
| Message-ID | <[email protected]> |
On 4/13/23 13:50, The Doctor wrote: > In article J.O. Aho <[email protected]> wrote: >>> Try to pass a json from 1 form to another. >> >> This is why you have session cookies, no point of passing data from a >> form to another. >> > > I have > > <?=session_start(); > error_reporting(E_ALL); > ?> > > So I need to add a specific cookie/ token ? You just use the $_SESSION to store and fetch data as I mentioned in my post from 7th of March. The page you posted the values to: $_SESSION['serialized_order'] = serialize($order); and on the page where you need all the data: $order = unserialize($_SESSION['serialized_order']); if you need to modify the data, then read it from the session and then store it back to the session. Keep in mind the session data is never sent to the browser, so the user can't adjust the data on their side. -- //Aho