I have a set of cookies to set :
$listevariable = array("aga","agaga","agagaga");
I'd like to know how, when i get the datas from a form, how to set cookies fort each data of the form (in order to save the form as a cookie).
i tried to do this :
foreach ($listvariables as $var) {
setcookie($var,$$var);
}
but $var in setcookie doesn't seem to return something valid.
perhaps I could just make a copy of the string var if there is a problem of null char, but i don't know how to copy a string
thank you