...

View Full Version : Write to file?



Blockis
10-29-2009, 10: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.

Blockis

VIPStephan
10-29-2009, 10: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, 12: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

www.php.net
search: fwrite



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum