zirgs Posted April 5, 2006 Report Share Posted April 5, 2006 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 More sharing options...
Stopp Posted April 5, 2006 Report Share Posted April 5, 2006 $count=fread($fh,filesize($file)) or $count=1; fclose($fh); $count++; $count jau ir norādīts kā viens, pēc tam ar $count++ tiek pieskaitīts vēl viens. tas uz ātru aci saskatītais Link to comment Share on other sites More sharing options...
zirgs Posted April 5, 2006 Author Report Share Posted April 5, 2006 ar ko iisti atskjiras vinji abi es sito scriptu dabuuju kaut kur ... nemaaku shitaadus rakstiit :( ==================== jaa poaldies stopp tagad straadaa :D Link to comment Share on other sites More sharing options...
Recommended Posts