"success", 'name' => $name, 'request' => $_REQUEST, 'postvars' => $_POST, 'details' => $_FILES, // and some static subarray just to see 'foo' => array('foo'=>"bar") ); }else{ $ar = array( 'status' => "failed", 'details' => "" ); } // yeah, seems you have to wrap iframeIO stuff in textareas? $foo = $json->encode($ar); ?>