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:

Did you know?Explore Trending and Topic pages for more stories like 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

Hits this week counter
I have a counter on my site that tracks hits, IP's, etc. into a mySQL database. It also includes the

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

Email Form Syantax Issue 2
How to make this look FROM:"OUR TEAM" instead of FROM:abc@mail.com

$headers = "

A href problem under php
Hello...

I tried to explain the issue in an earlier post.. but was not clear enough....

Splitting Attributes
SQL> SELECT I_NAME, substr(I_NAME,1,instr(I_NAME,'O')) "First part",

substr(I_NAME, IN

Linking with Foreign Keys
I have been getting an erro when I try and link:

create table Faculty_Specialty (I_Name v

Nested (echoed) php running wrong script
Got a problem with a php website I'm creating.

In a nutshell, the first page is entirely html

Not connecting to DB using ruby, error:env.c:257:in oci8lib.so: ORA-12154:
Hi All,

I am trying to connect to the database server from the client server using ruby and f

Upload simple problem
Really confused!! I run once and it worked, but when i tried today...it didn't work

Which par

Serial number of exernal hard disk/Thumbdrive
Hi guys, I am new tio java networking concepts.Please tel me how to get Serial number of exernal

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