WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > PROGRAMMING LANGUAGES > Scripting and Server Side > Reading CSV or TXT files and displaying as part of an HTML document

Reply
  Thread Tools Display Modes
Old 11th December 08, 02:40 AM   #1
xtiano77
WLC Member
 
Join Date: Aug 2008
Posts: 10
Default Reading CSV or TXT files and displaying as part of an HTML document

I am trying to write an HTML page for my office and I would like to include a script that reads either a CSV or TXT file and displays the information based on what is typed inside a text box. Can anyone help me with that or at least point me in the right direction? Thanks in advance for your help.
xtiano77 is offline   Reply With Quote
Old 18th December 08, 06:12 PM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Reading CSV or TXT files and displaying as part of an HTML document

can be done with HTML

It needs server side includes or scripting.
chrishirst is offline   Reply With Quote
Old 24th January 09, 01:54 PM   #3
adamjv90
WLC Member
 
Join Date: Nov 2008
Posts: 8
Default Re: Reading CSV or TXT files and displaying as part of an HTML document

You would need to use php or another server side language for this a great tutorial for reading and writing text files can be found here http://www.apitalk.com/document.php?id=1184208074_5
adamjv90 is offline   Reply With Quote
Old 25th January 09, 11:23 PM   #4
aprildawn
WLC Member
 
Join Date: Jan 2009
Posts: 8
Default Re: Reading CSV or TXT files and displaying as part of an HTML document

Hi Xtiano. So let me get the flow right. You want the user to get info stored in text or cvs files ,and you want the info presentation to be dependent on the commands put into a text box? It sounds like you'll need a PHP query of a mysql database containing these files, along with regular expressions ? ( "regular expressions "are almost a language unto themselves , what these expressions though do is return specific strings .
good luck xtiano and keep us posted on your efforts.
aprildawn is offline   Reply With Quote
Old 10th February 09, 01:31 AM   #5
xtiano77
WLC Member
 
Join Date: Aug 2008
Posts: 10
Default Re: Reading CSV or TXT files and displaying as part of an HTML document

Well, you guys were right. I did need PHP and I am working on learning it right now. I trying to write a few web pages with some somewhat complex features in order to get used to the syntax before I start trying MySQL. I must say that learning JavaScript did help me with PHP. It seems relatively easy and straight forward. Based on what I have read so far I really don't see why some people speak of PHP as an inferior language simply because it is open source. I think it is powerful enough to do just about anything I could want. Hell, this site was done with PHP! Anyway, I do appreciate your help and suggestions. I will try to stay current in this forum so I can share what I learn. Thanks again! Cheers!
xtiano77 is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:28 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.