=-{A*n*k*e*t*a}=-

mam takovuhle anketu ale nevim proc se mi pricita hlas az na podruhy
muzete se na ni kouknout na
www.vesmir.webz.cz/pokusy/anketa.php

<?php
$fp = FOpen ("width.dat","r");
$obsahw = fread ($fp,1024);
FClose ($fp);
$nova = 1;
$width1 = $obsahw+$nova;

$fp2 = FOpen ("moznost1.dat","r");
$a1 = fread ($fp2,1024);
fclose ($fp2);
$hlasa = 1;
$pocet1 = $a1+$hlasa;
?>



<form action="anketa.php" method="post">
<input type="radio" name="anketa" value=1>dsfsdf<br>
<?
echo "<img src=\"pruh1.jpg\" height=2 width=\"$width1\">,$pocet1<br>";
?>
<input type="radio" name="anketa" value=2>fdddddddddg<br>
<img src="pruh2.jpg" width="<? echo "$width2"; ?>"><br>
<input type="radio" name="anketa" value=3>dfdfgggggg<br>
<img src="pruh3.jpg" width="<? echo "$width3"; ?>"><br>
<input type="submit" value="Hlasuj">




<?php
switch ($anketa):
case 1:
$filename = FOpen ("width.dat","r+");
FPuts ($filename,"$width1");
FClose ($filename);

$pocethlasujicich = FOpen ("moznost1.dat","r+");
FPuts ($pocethlasujicich,"$pocet1");
FClose ($pocethlasujicich);
break;
case 2:



break;
case 3:



break;
default:
echo ".";
endswitch;
?>