<p dir=rtl><font size=2 face=arial color=black>

<?php

/*

/////////  PHPOLLS v2.1   /////////

Copyright 2000, Mathias Daval / PHPVault (http://www.phpvault.com)

/////////////////////////////////////////////////////////////////////////

This script is a freeware. You can use it and modify it freely as long as you leave the copyright. Please tell me if you find this script useful

(webmaster@phpvault.com) 

PHPolls allows the webmaster to create online polls, with graphical display of the results, with no need of database. 

/////////////////////////////////////////////////////////////////////// */

// VARIABLES TO MODIFY

$data="data.dat";  // REPLACE WITH SERVER PATH TO DATA.DAT

$topic="topic.dat";  // REPLACE WITH SERVER PATH TO TOPIC.DAT


// NOTHING ELSE NEEDS TO BE CHANGED

$file_topic=fopen($topic, "r");

$poll_name=fgets($file_topic, 255);

fclose($file_topic);

$dataf=file($data);

echo "<form method='post' action='http://www.games4play.co.il/vote/pollresults.php'>";

echo "<b>$poll_name</b><br>\n";

for ($i=0; $i<=count($dataf)-1; $i++) 
{
	echo "<input type='radio' name=\"vote\" value=\"$i\"> $dataf[$i]";
}

echo "<input type='hidden' name='poll_name' value='$poll_name'>";

echo "<br>&nbsp;<input type='image' value='Vote' name='submit' src=../images/vote.jpg align=middle><br>";

echo "<sup><br>&#91;<a href='pollresults.php?results=1'><font color=black> </font></a>&#93;</sup>";

echo "</form>";

?>

</font></p>