Habs mal versucht und sieht jetzt so aus:
if($anzahl == 0)
{
$tp = array();
$tp[0]= $zzahl;
$tp[0] = unserialize ($tp[0]);
echo "<br>Keine Eingabe";
$tp[0] = array (serialize($tp));
echo '<input type = "hidden" name = "tp0" value = "'.$tp[0].'">';
}else{
if($anzahl == 1)
{
$tp[1] = $zzahl;
$tp[1] = unserialize ($tp[1]);
echo "<br>tp0 = $tp[0]";
$tp[1] = array (serialize($tp));
echo '<input type = "hidden" name = "tp1" value = "'.$tp[1].'">';
}
}
Ausgeben wird trotzdem nichts, es steht einfach
"tp0=" da.