ho fatto in questo modo:
Codice PHP:
echo "<br/><br/>";
$arr = "tb_detersivi,tb_scarpe,tb_vernici";//array nome dei cookie
$tt = explode(",",$arr);
echo "<form action='javascript:void(0)' method='POST'>";
echo "<table style='font-size:13px' data-role='table' id='movie-table' data-mode='reflow' class='ui-responsive table-stroke'>
<thead style='background-color:#000;color:#FFF'>
<tr>
<th data-priority='1'>Utenza/Prodotto</th>
<th data-priority='2'>Stipula</th>
<th data-priority='3'></th>
</tr>
</thead>
<tbody>";
for($x=0;$x<=count($tt);$x++){
if(isset($_COOKIE[@$tt[$x]])){
$tbs = explode("~",$_COOKIE[@$tt[$x]]);
echo "<tr>";
echo " <td>".$tbs[0]. "</td><td>" . ($tbs[3]=="0000-00-00" ? "to confirm" : '') . "</td><td>elimina</td>";
echo "</tr>";
}
}
echo " </tbody></table>";
echo "</form>";
Per il momento va bene cosi.
Grazie mille.