When passing collected variables through the wizard, why do I need to serialize array variables but not basic ones?
Example:
$services gets serialized
Code: Select all
case CONFIGWIZARD_MODE_GETSTAGE3HTML:
// get variables that were passed to us
$address=grab_array_var($inargs,"address");
$services=grab_array_var($inargs,"services");
$output='
<input type="hidden" name="services_serial" value="'.base64_encode(serialize($services)).'">
Code: Select all
case CONFIGWIZARD_MODE_GETOBJECTS:
$address=grab_array_var($inargs,"address","");
$services_serial=grab_array_var($inargs,"services_serial","");
$services=unserialize(base64_decode($services_serial));