You dont really need to use a database if its a simple poll but you do need PHP. Your host should have that set up.
Here is the code that I wrote for my site.
<html>
<title>Simple Poll</title>
<body>
<form name="survey" method="POST" action="<? echo $SERVER['PHP_SELF'] ?>">
<b>Select your favorite</b><br>
<label><input type="radio" name="sel" value="1">Apples</label><br>
<label><input type="radio" name="sel" value="2">Oranges</label><br>
<label><input type="radio" name="sel" value="3">Both</label><br>
<input type="submit" name="Survey" value="Vote">
</form>
<?
if(!empty($POST['sel']))
{
include "dataTxt.txt";
$hndl = fopen("dataTxt.txt", "w+");
fputs($hndl, "<?\n");
for($i = 0; $i < 3; $i++)
{
$selComp = $i + 1;
if($_POST['sel'] == $selComp)
{
$plusOne = $voteData[$i] + 1;
fputs($hndl, "\$voteData[$i] = \"$plusOne\";\n");
}
else
{
fputs($hndl, "\$voteData[$i] = \"$voteData[$i]\";\n");
}
}
fputs($hndl, "?>");
fclose($hndl);
}
include("dataTxt.txt");
echo "<b>Results</b><br>
Apples (" . $voteData[0] . ")<br>
Oranges (" . $voteData[1] . ")<br>
Both (" . $voteData[2] . ")<br>";
?>
</body>
</html>
It also requires a text file named dataTxt.txt
Looks like this.
<?
$voteData[0] = "0";
$voteData[1] = "0";
$voteData[2] = "0";
?>
This should be easy to modify but if you have any questions let me know.
Hope this helps.