PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Er. Rochak Chauhan  >  AJAX Poll  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: AJAX Poll
Process a poll without reloading the poll page
Author: By
Last change:
Date: 15 years ago
Size: 462 bytes


Class file image Download

('TEMPLATE_FILE', 'template.html');

// initalize
$pollHeader = "This is poll heading";
$question = "Which team will win World Cup Soccer 2006 ?";
$options = array("Brazil", "England", "France", "Germany");


$ajaxPoll = new AjaxPoll(TEMPLATE_FILE);

$ajaxPoll->tag('header', $pollHeader);
$ajaxPoll->tag('question', $question);
$ajaxPoll->tag('options', $options);


For more information send a message to info at phpclasses dot org.