|
Posted by Toby Inkster on 03/25/06 16:21
Martin Pöpping wrote:
> I want to load a csv-file to a textarea field.
Easy way:
<textarea name="foo"><?php
$lines = ("mydata.csv");
foreach ($lines as $l)
printf("%s\n", htmlspecialchars($l));
?></textarea>
> Is it possible to do that only with HTML?
No: you'll either need a server-side script, like PHP, or to use AJAX
techniques. Server-side is preferable as it will be vastly more reliable,
but it does mean that your server needs to support that scripting language.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|