$_SESSION ?
serialize? json?
// ?search=&order=dat&od=&do=
$req = isset($_GET['save']) ? unserialize($_GET['save']) : '';
unset($_GET['save']);
foreach($_GET as $key=>$value) {$req[$key] = $value;}
print_r($req); // echo '<pre>'; print_r($req); echo '</pre>';
echo '&save='.serialize($req);
echo '<input name="save" value="'.htmlspecialchars(serialize($req)).'">'; // plus ten prikaz na osetreni quote uvozovek ", ted si nevybavim nazev
Ale, kdyz to ulozis do session, tak se ti to zjednodusi. Session zustava aktivni asi 17 min, dokud uzivatel klika.
session_start()
$req = isset($_SESSION['save']) ? $_SESSION['save'] : array(); // presunes pole do $req
foreach($_GET as $key=>$value) {$req[$key] = $value;}
print_r($req); // echo '<pre>'; print_r($req); echo '</pre>';
$_SESSION['save'] = $req;