Tag Archives: aps

Error Displaying in APS Package or validating an entered field

Sample code $str = “<?xml version=’1.0′ encoding=’UTF-8′?>”; $str.= ‘<output xmlns=”http://apstandard.com/ns/1/configure-output”><settings>’; $errorMessages=”mydoubts.in already exists”; $errsetting=’domainname’; $str .= ‘<errors>’; $str .= ‘<error id=”‘.$errsetting.’” setting-id=”‘.$errsetting.’”>’; $str .= ‘<message>’.$errorMessages.'</message><system>’.$errorMessages.'</system></error>’; $str .= ‘</errors>’; $str .= ‘</settings>’; echo $str;

Storing a value into the settings variable in aps package.

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;