Location: PHPKode > scripts > CF Polling > cf_polling_v0.94/cfPolling/ajax.php
<?
	$dir = dirname(__FILE__);
// include the cf polling class file
	include($dir.'/cf.poll.class.php');
	if( isset($_POST['results']) ){
		$_GET['results'] = $_POST['results'];
		$new_poll = new cf_poll($_POST["question"]);
		$new_poll-> new_vote($_POST);
		echo $new_poll -> poll_html($_GET);
	}
?>
Return current item: CF Polling