Log $_POST


Posted on 16th Feb 2014 07:03 pm by admin

How would i log submits on a form, by everyone? I want to then echo the number of submissions.

I've tried this:

Code: [Select]<?php

if (isset($_POST['submit'])) {

$myFile = "testFile.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, $submit);
fclose($fh);

}


?>
But unsure of what to do next...

No comments posted yet

Your Answer:

Login to answer
312 Like 40 Dislike
Previous forums Next forums
Other forums

Word filter problem
Hello,

im trying to make a filter for words inputted in to my website but i want to store the

Blank record injected into database
I always found several blank records inside my database, although $SESSION is required to insert the

Custom CMS
This is a big custom CMS script I'd like to develop and would like some help atleast figuring out wh

Request-URI Too Large
I have created a simple submit form for a mysql database that puts a piece of code into database.<

Drop Down and text box issue
Is it possible to set a drop down list and text boxes to a certain width?

here is my code

PHP Error
On my .php page I have a drop down box that has several names in it. When a user clicks the name &am

parse error
On my local machine I keep getting parse error for my footer. When I put it online, it doesn't show

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

Probably a simple error...
I'm getting the error -- Parse error: syntax error, unexpected '{' in /home/content/c/s/t/csteffen24

Table control is disappearing from Screen
Hi Experts,

I have a screen with multiple table control(TC). Each table control has two c

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash