I'm looking to keep track of how many times a form is submitted as well as using that number to be called back into another php file. I've written this but it's not working. The text file number contains a "0" I want it to increase each time.
I'm putting this in here instead of php because I don't know if this is the best script or code to keep track of the number of times its clicked. Any Ideas? Thanks.Code:<?php $num = "number.txt"; $increase = fopen($num, 'w'); $val = ($num + 1); fwrite($increase, $val); fclose($increase); ?>



Reply With Quote
Bookmarks