Reply to Re: How to load a CSV/TXT file in a textarea?

Your name:

Reply:


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

[Back to original 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

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