getResourcesByType('crossword', array('resourceID' => $_POST['rid'])); if ( count($objs) == 1 ) { //include "Crossword.php"; $ob = $objs[0]; //print $ob->getTitle(); //print_r($_POST); print json_encode($ob->collectCrossword($_POST)); } } ?>