I think that if you don't have any php knowledge, it will be very hard for you to create such a script.
On the other hand, it is difficult to guide you through setting up such a script, as it is a compliceted and long process(many separate files, scripts, etc).
You might want to have a look at
http://www.dbtechnosystems.com/logginexamples.php as well as
http://www.bluevodaforms.com/ademo/
Watdaflip (see post above) also provides php scripting.