0

hello guys. i want to add a button in php wich loads a document and includes it into the text area.
sample we have a file called document.txt
and if we load this file by pressing the button load, the textarea then is filled with the text that was in the file.
can this be possible?

2
Contributors
4
Replies
28
Views
4 Years
Discussion Span
Last Post by GliderPilot
1

If you wanted to load the txt file after the page has already been generated without refreshing you'll have to send an AJAX request to another PHP script which reads the text in the file and sends it back. The script that reads the file can be PHP but the rest would be JavaScript

0

but its not problem, if it can be inculded inside a form, and after i click submit than the text file should be included.

0

Sorry, but no one here is going to write your code for you. Find a good tutorial (like this one) and give it a go, if you experience troubles or have questions than feel free to ask and I'm sure someone here can help you out.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.