You are here: Re: How to load a CSV/TXT file in a textarea? « HTML « IT news, forums, messages
Re: How to load a CSV/TXT file in a textarea?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация