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

Simple program to copy files between two computers over the web
I use logmein free and often need to move files between my two computers. Generally, I move the file

Sql and php order list script problems
Hi im having a few problems with trying to get the coding right on a orders list ive done (or trying

WM transfer order: confirm different batch than proposed by system
Hi folks,

following scenario: we have a full WM with mixed batch numbers allowed in stora

ereg_replace issue
hi there people

i have this code happening with regards to my wamp server. is this something

data type in column definition
Hi,
I create a table with column called "Direction of Travel code ".
The travel codes in t

JSON SORT WITH PHP
I have two products that I want to sort by say "Id:17, value: xxx" using php
The page w

How to display objects in a row
I have 7 codes that i want to display in a row one next to another.
The first is {$ads->ad

Display a default image
I am trying to display generic image for items that don't have one, but I can't get it to display.

admin with my register system?
Hey i wana make it so i can make a admin level on my register system , I'm kinda new to php to im no

Empty text file when there is over XXXX lines of text.

define("RANDOM_FILE","/public_html/random.txt");
$randomEntry = "

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