Blockis Posted October 29, 2009 Share Posted October 29, 2009 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, multiple people can submit things, and when I go to log.html, the content will be, apple, grape, orange, etc. Any help would be appreciated. Blockis Quote Link to comment https://forums.phpfreaks.com/topic/179543-write-to-file/ Share on other sites More sharing options...
haku Posted October 30, 2009 Share Posted October 30, 2009 You need to use php (or some other serverside language) for this. You can use fopen, fwrite and fclose. Moving this to the php section. Quote Link to comment https://forums.phpfreaks.com/topic/179543-write-to-file/#findComment-947538 Share on other sites More sharing options...
Alex Posted October 30, 2009 Share Posted October 30, 2009 Alternatively you can use file_put_contents() which essentially does the same as the 3 functions that haku stated, just in 1 step making things easier for you. Quote Link to comment https://forums.phpfreaks.com/topic/179543-write-to-file/#findComment-947539 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.