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...

312 Like 40 Dislike
Previous php-forum Next php-forum
Other php-forum

How do I use a global footer..?
If my index.php has a bole bunch of if functions and exit's in them

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

Online Event Ticket Sales
Has anyone wrote a script for online tickets sales?

I have been googling and found lots of th

Retrieving the 25 most recently added entries from all tables in a MySQL databas
Hello,

The code below works great. It creates a table that shows the 25 most recently added t

how to insert value
I am having file bookissueadd.php..... in which i am having tag

<td height="21&q

php calculate
this code echoes correctly the sum but the inserted result is 0??
Code: <?php
$TotalNum

Renaming a file that a user uploads to site?
My site allows for registered users to upload images to the site under their own gallery. Currently

Save file by click
Hello.
I'm not understand how to save file from page. I'd like make link to file with save abil

Including calander to page - will not show other months than current??
im trying to add an existaing calander onto a profile page by using Code: <?php include "

single values into sql field
i have a form which i want the user to able to select multiple answers. But i want the answers to be

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