|
Posted by Martin Pöpping on 03/25/06 17:01
Toby Inkster schrieb:
> 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>
Why can´t i use:
<textarea name="foo"><?php include('mydata.csv') ?></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.
Thanks,
Martin
Navigation:
[Reply to this message]
|