PHP Classes

File: vote.php

Recommend this page to a friend!
  Classes of Alessandro Rosa   dvote   vote.php   Download  
File: vote.php
Role: Example script
Content type: text/plain
Description: example code
Class: dvote
A poll voting system based on .ini files
Author: By
Last change: none
Date: 18 years ago
Size: 455 bytes
 

Contents

Class file image Download
<?php
$voteENTRYindex
= $_POST['votingRADIO'];

require_once(
"dvote.php" );

$dvote = new dvote( "vote.ini" ) ;
$dvote->setTotalVotesLabel( "Total Votes" ) ;

if (
$dvote->checkVoter( "cookiename", "testtable" ) ) $dvote->vote( $voteENTRYindex ) ;
?>
<html>
<head>
<title>Example Script - Voting Pool</title>
<LINK REL="StyleSheet" HREF="vote.css" TYPE="text/css">
</head>
<body>
<?php $dvote->generateStatistics(); ?>
</body>
</html>