is_valid) { case TRUE: $req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim'); $uuid = UUID::v4(); $ret = $req->admin_create_user($first, $last, $password, '128', '128'); $rep = new SimpleXMLElement($ret); foreach($rep->params->param->value->struct->member as $member) { switch($member->name) { case "success": switch((bool)$member->value->boolean) { case TRUE: echo '
Account created successfully.
'; goto last; default: echo 'Sorry, the account could not be created.
'; goto last; } break; } } break; default: echo 'Sorry, incorrect captcha. Please try again.
'; } last: ?>