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

Default TimeZone
The server I'm working with is hosted in America so all times inserted into the database are coming

Help with usergroups? prolly really quick
So were coding our own forums for a game system we made an we have the users level setup but now I n

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

ok i need to join all this pages to make 1 neat code
i have 5 pages that make up my tv guide it works 100% but i want to make it 1 page if i can or 2, i

phpMailer will not connect using SMTP
I am trying to use phpMailer with smtp:

Code: [Select]$mailer = new PHPMailer();
$mailer-&

try catch error
I have been trying try catch but, I can't get it to work. The code opens a non existing file called

Please help with code for SMTP authenticated PHP email form
Hello, I'm creating a PHP email form, and for this particular server, I have to use SMTP Authenticat

php form help
Hey,

I use a control file to set my meta tags and titles

Here's an example
Code: &a

Is it a good practice to store user info. in sessions?
I am making a user class for my script which stores all the user information in sessions. It takes u

Upload file and add HTML
Hey everyone,

I have a client has meeting agendas and minutes that should be posted online. I

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