I am looking for suggestions and code samples to get a file and load it into a text area. Let me give a bit more of a detail.
My code searches for a file, and with in that file there is a array for additional CSS files. I am looking for a way to get the CSS file to be loaded to a text-area once you click on a button.
Every file contains this:
$CSS = array(file.css);
Now, how can I get:
<a href="file.css">CSS</a>
or
<button onclick="myFunction()">CSS</button>
To load here:
<textarea id="filecontent" name="filecontent" cols="80" rows="10">".$filecontent."</textarea>