dialogCreateAlert(); //Initialise a new dialog $droid->dialogSetMultiChoiceItems($list); //Display our list on the dialog $droid->dialogSetPositiveButtonText("Yes, order my pizza now!"); $droid->dialogSetNegativeButtonText("No, I don't want pizza."); // Create positive and negative button, so the user can abort the pizza ordering procedure... $droid->dialogShow(); //Display our dialog $yesNo = $droid->dialogGetResponse(); if ($yesNo['result']->which == "positive"){ $result = $droid->dialogGetSelectedItems(); echo 'Your pizza:'.chr(10); // For some reason \n doesn't work with echo. Dunno if it is an ASE problem or a problem with the custom php-build... foreach ($result['result'] as $item){ echo $list[$item].chr(10); } }else{ $droid->makeToast("Good bye"); } $droid->exit(); ?>