Jump to content
php.lv forumi

pieskaita divus nevis 1


zirgs

Recommended Posts

njaa nepagaaja ne briitinjsh ka kaut kas neaizietu auzaas

man shitaads rek scripts

<html>
<head>
<meta http-equiv="Refresh"
content="1; URL=results.php">
<title> Place a mark for this web layout 1-10?</title>
<style type="text/css">
body {background-color: #000000; color: #273b0d; text-align: center; font-size: 11px; font-family: Verdana, sans-serif;  }
a:link, a:visited, a:active { color: #273b0d; text-decoration: underline; }
a:hover { color: #273b0d; text-decoration: none; }

</style>
</head>
<body>
<script language="javascript" type="text/javascript">

window.resizeTo(600,400);

</script>
<?php
$vote=$_POST["rate"];
$file="$vote" . ".txt";
$fh=fopen($file,'r') or die ('Failed to read file');
$count=fread($fh,filesize($file)) or $count=1;
fclose($fh);
$count++;

$fh=fopen($file,'w') or die('could not open file');
fwrite($fh,$count) or die ('could not write');
fclose($fh);
?>
<br/>
Thank you for your vote.<br/>
Redirecting to results...
</body>
</html>

un sliktaakais ir tas ka vinsh pieskaita nevisa vienu balsi bet 2 .... kaa tas var buut ?

tas vareetu buut deelj refresh?

paldies :D

Link to comment
Share on other sites

×
×
  • Create New...