View Full Version : Write to file?

10-29-2009, 11:39 PM
OK. I have some code that allows a user to enter a field and submit it. However, I am interested in a way so that the person can enter something, say apple, and it will be written to log.html.

So, when a user goes to the website and enters something in the field box and submits it, it gets written to log.html or something. Any way to do it, so it looks like this?
apple, orange, potato, space, etc

Any help would be appreciated.


10-29-2009, 11:49 PM
That would be done with a server side script. I’m not good at PHP or stuff like that but I’ve done this with CMS Made Simple (http://cmsmadesimple.org/) and its FormBuilder module before. You can make form input be written to a text file there.

Phil Jackson
10-30-2009, 01:05 AM
you would either have to create a function that passes every post variable therough or use ajax to grab any input data once the submit button is pressed and write to file

search: fwrite