<?php
/*
* testAJAXLoadContent.js
*
* @(#) $Id: testAJAXLoadContent.php,v 1.3 2014/07/08 04:29:15 mlemos Exp $
*
*/
$header = new stdClass;
$header->element = 'feedback';
$body = '<div>Success!</div><pre>'.HtmlSpecialChars(print_r($_POST, true))."\n\n".HtmlSpecialChars(print_r($_FILES, true)).'</pre><script type="text/javascript"><!--'."\n".'alert("JavaScript code executed!");'."\n// --></script>\n";
/*
* Build a JSON encoded header with custom out of band response data
*/
$json = json_encode($header);
echo strlen($json), "\n", $json, $body;
?>
|