jason213123 Posted July 28, 2010 Share Posted July 28, 2010 hi, i looking for a way to use a auto fill for a inputbox text but all that i found is using a mysql bd. there is any solution using a txt file? stored in server. thanks a lot for your help Link to comment https://forums.phpfreaks.com/topic/209100-auto-fill-from-txt-file/ Share on other sites More sharing options...
Pikachu2000 Posted July 28, 2010 Share Posted July 28, 2010 Yes. Use file() to read the text file into an array,then use the array elements to populate the form fields. If it's only one field, you can use file_get_contents() to read the file into a string. Link to comment https://forums.phpfreaks.com/topic/209100-auto-fill-from-txt-file/#findComment-1092123 Share on other sites More sharing options...
jason213123 Posted July 28, 2010 Author Share Posted July 28, 2010 hi, can you give a example please? thanks Link to comment https://forums.phpfreaks.com/topic/209100-auto-fill-from-txt-file/#findComment-1092131 Share on other sites More sharing options...
Pikachu2000 Posted July 28, 2010 Share Posted July 28, 2010 Where exactly are you having problems? Post the code you've tried and any errors that it generated. Link to comment https://forums.phpfreaks.com/topic/209100-auto-fill-from-txt-file/#findComment-1092133 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.