sam06 Posted July 3, 2008 Share Posted July 3, 2008 Hi there, Is there a way for PHP to load 'info.txt' into a text box, than the 'submit' writes whats in the box over the original source? Thanks, Sam Quote Link to comment https://forums.phpfreaks.com/topic/113132-load-txt-file-into-text-box-than-submit/ Share on other sites More sharing options...
wildteen88 Posted July 3, 2008 Share Posted July 3, 2008 Yes, use file_get_contents to get the data from info.txt to the textarea. Then use file_put_contents to overwrite the changes. check the manual on how to use these functions. Quote Link to comment https://forums.phpfreaks.com/topic/113132-load-txt-file-into-text-box-than-submit/#findComment-581180 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.