I have spent a couple hours reading up on different methods on how to go about storing data for a submit button counter in a text file.
<form action="/enquiry.php" method="post" name="form">
<label>Name *</label>
<input id="Name" maxlength="100" name="Name" type="text" value="" />
<label>Email Address *</label>
<input id="Email" maxlength="100" name="Email" type="text" value="" />
<button class="btn btn-default" id="submit" name="submit" type="Submit">Submit</button>
</form>
I want to simply have a 'count.txt' file in the main server directory, for which that is displayed on the contact page (Button clicked: X times), every time some one clicks 'Submit' on the contact form.
Can any one recommend the best & safest way to do this?
Thank you.