i am using serialize and unseriazlize, but why i cannot to post string variables in arrays and after this make serialize, and why i cannot to use associate arrays for serialize and unserialize ????
i only want to make this
$array_1=array();
$array_1['item_1']="sssss";
$array_1['item_2']="sssss";
$array_1=serialize($array_1);
<form name='' method='post'>
<input type='text' name="array_1" value="<?echo $array_1?>">
<input type='submit' value='post serialized array'>
</form>
after post.. i want to make this....
$posted_array=unserialize($array_1);
while(list($NUM,$DATA)=each($posted_array))
{
echo "$posted_array[item_1]";
}
anybody can help. ?🙁
thanks .........