Bo Larsson's Internet Server Software

Bo Larsson's Internet Server Software
All Contents Copyright 1997-2020 by Bo Larsson - Send questions or comments to: admin@bliss.seagull.net
Table of Contents
Last updated 18 Jan 97
Welcome!

Perl CGI Scripts

guestbook 970118 NEW!
classifieds 970115 NEW!
search 961211
table 961201
textrotate 961121
rotater 961119
navigate 961117
redirect 961111
pcounter 961110
mailsend 961110
yourhost 961110
youraddress 961110

Java Applets

jclock 961204 NEW!
jcounter 961114

Links to Other Sites

Fisher's CGI Talk NEW!
JemTek CGI C Library
Dream Catchers CGI Scripts
Web Engineer's Toolbox
cgi-lib.pl Home Page
Common Gateway Interface
CGI Made Really Easy
CGI Programmer's Reference
Matt's Script Archive
Netamorphix CGI Page
Selena Sol's Archive

search 961211

view the source

show me an example

This is a script that searches the contents of a text file for a query string and outputs the result as a table. The text file should have its fields tab-delimited and its records return-delimited.

And what's it good for?

Say, for example, that you have some information you would like to present to browsers of your web site, but it's a lot of information and you want to limit how much is displayed. How about letting them search for a particular string and output the result as a table? Most browsers know tables. Also, what if that text file is always changing (maybe it's a log file of some sort) and you don't want to keep creating a new html file to display it, and you also don't want to just display the plain text file because it's extremely ugly. Well, you should get a few ideas from this search CGI script.