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 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. 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
Archived
This topic is now archived and is closed to further replies.