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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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.