Forum Moderators: coopster
if (!isset($_COOKIES["total"]))
setcookie("total", "0", time()+60*60*24*30*12*10);
$_COOKIE["total"]++;
setcookie("total", $_COOKIE["total"], time()+60*60*24*30*12*10);
setcookie("image[" . $_COOKIE["total"] . "]", $fRName, time()+60*60*24*30*12*10);
-----------------
now the problem here is I get "header already sent" error when trying to upload multiple files. One file is always OK but when I try multiple ones I get this error. Is there an easy way of doing this? THanks for help.