$serialize_me = array(
array(
'Name' => 'English',
'Apprev' => 'en',
'default' => true,
),
array(
'Name' => 'عربي',
'Apprev' => 'ar',
'default' => false,
),
);
$serialized = serialize($serialize_me);
Using this array, I’m able to serialize the data and insert it into a database. But how can I build such an array using a form?
I’m trying to build a form that will allow me to serialize the data and insert it into a database.
on the HTML side (called for example whatever.php):
and then on the PHP side (in the case of this example a file called action.php):