@Hube02
The output will be in tabular format, and it's important that user be able to Ctrl-A the contents of the "output box" and copy-paste the contents into Microsoft Excel, for example, as a spreadsheet.
Would this work for the solution your suggest?
Alternatively, can you provide buttons to automatically download the contents of your solution into a CSV or Text file on the client computer, for later import to Excel, etc?
This file download feature may be done with a PHP script. If so, can you explain how to do this?
Main Topics
Browse All Topics





by: Hube02Posted on 2009-09-20 at 12:50:32ID: 25378681
Output the HTML into a DIV element. Give the div a white background and a border if you like. also add a bit of padding to set the text off from the edge. Give the dive a height and a width and set overflow to "auto" when the content you put in there is larger then the div size scroll bars will appear.
example:
<div style="background: #FFF; width: 200px; height: 100px; border: 1px solid #000; padding: 10px; overflow: auto;"></div>
Unless of course this is going to be part of some form input, but if it's not for a form then you should not use a textarea.