Storing a value into the settings variable in aps package.

By | October 30, 2013

Below sample code will execute through verification script will work

sample code to load a country dropdownbox.

$str = “<?xml version=’1.0′ encoding=’UTF-8′?>”;
$str .= ‘<output xmlns=”http://apstandard.com/ns/1/configure-output”><settings><setting id=”country”>’;
foreach () {

$str .=    ‘<choice id=”‘.$id.'”><name>’.htmlspecialchars($cname).'</name></choice>’;
}
$str .= ‘</setting></settings>’;

echo $str;