Location: PHPKode > projects > A Simple Yet Effective PHP Web Counter > a-simple-yet-effective-php-web-counter/cleanup.php
<?php include("header.php"); ?>

<!--- end styling --->

<?php echo $cleanupintro ?><br>
<font color=red><?php echo $usewithcaution ?></font>
<p></p>
<?
     if ($_POST['submit1'])
     {
           $cleanup = fopen($file1w, 'w') or die("can't open file");
         fwrite($cleanup, $writedata1);
         fclose($cleanup);
         echo "$cleanmonday";
     }
     if ($_POST['submit2'])
     {
           $cleanup = fopen($file2w, 'w') or die("can't open file");
         fwrite($cleanup, $writedata2);
         fclose($cleanup);
         echo "$cleantuesday";
     }
     if ($_POST['submit3'])
     {
           $cleanup = fopen($file3w, 'w') or die("can't open file");
         fwrite($cleanup, $writedata3);
         fclose($cleanup);
         echo "$cleanwednesday";
     }
     if ($_POST['submit4'])
     {
           $cleanup = fopen($file4w, 'w') or die("can't open file");
         fwrite($cleanup, $writedata4);
         fclose($cleanup);
         echo "$cleanthursday";
     }
     if ($_POST['submit5'])
     {
           $cleanup = fopen($file5w, 'w') or die("can't open file");
         fwrite($cleanup, $writedata5);
         fclose($cleanup);
         echo "$cleanfriday";
     }
     if ($_POST['submit6'])
     {
           $cleanup = fopen($file6w, 'w') or die("can't open file");
         fwrite($cleanup, $writedata6);
         fclose($cleanup);
         echo "$cleansaturday";
     }
     if ($_POST['submit7'])
     {
           $cleanup = fopen($file7w, 'w') or die("can't open file");
         fwrite($cleanup, $writedata7);
         fclose($cleanup);
         echo "$cleansunday";
     }
     if ($_POST['submit8'])
         {
               $cleanup = fopen($file5, 'w') or die("can't open file");
            fwrite($cleanup, $writedata8);
            fclose($cleanup);
            echo "$cleankeywords";
     }
     if ($_POST['submit9'])
            {
                  $cleanup = fopen($file2, 'w') or die("can't open file");
               fwrite($cleanup, $writedata9);
               fclose($cleanup);
               echo "$cleanhits";
     }
     if ($_POST['submit10'])
            {
                  $cleanup = fopen($file4, 'w') or die("can't open file");
               fwrite($cleanup, $writedata10);
               fclose($cleanup);
               echo "$cleancounter";
     }
     if ($_POST['submit11'])
            {
                  $cleanup = fopen($file3, 'w') or die("can't open file");
               fwrite($cleanup, $writedata11);
               fclose($cleanup);
               echo "$cleancounter";
     }
?>
<form method="post" action="">
<input type="Submit" name="submit1" value="<?php echo $mondaysize ?>"> |
<input type="Submit" name="submit2" value="<?php echo $tuesdaysize ?>"> |
<input type="Submit" name="submit3" value="<?php echo $wednesdaysize ?>"> |
<input type="Submit" name="submit4" value="<?php echo $thursdaysize ?>"> |
<input type="Submit" name="submit5" value="<?php echo $fridaysize ?>"> |
<input type="Submit" name="submit6" value="<?php echo $saturdaysize ?>"> |
<input type="Submit" name="submit7" value="<?php echo $sundaysize ?>">
<p></p>
<input type="Submit" name="submit8" value="<?php echo $keywordssize ?>"> |
<input type="Submit" name="submit9" value="<?php echo $hitssize ?>"> |
<input type="Submit" name="submit10" value="<?php echo $countersize ?>"> |
<input type="Submit" name="submit11" value="<?php echo $ipsize ?>"> |
</form>
Return current item: A Simple Yet Effective PHP Web Counter