How can I modify part of a cgi/perl flat file search engine?

  • brain
  • Born
  • Born
  • brain
  • Posts: 1

Post 3+ Months Ago

I've got a cgi/perl script, flat file search engine, that puts out a list of categories to search by. However, the categories are listed as titles and only usable by clicking a radio button next to them.

The titles are themselves being created as clickable links. How can I convert these categories into actual clickable links? The categories are stored as a text file. The search results are being pulled from a flat file .dat separtated by | 's.

What would be the easiest way to convert these categories to actual clickable links, instead of just usable with the radio buttons?

By the way, you can see the actual information I'm talking about at ... /links.cgi
Any advice would be appreciated. :lol:

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9128
  • Loc: Seattle, WA

Post 3+ Months Ago

There would be a couple ways you could do it. First if the links are simply your domain name with the exact category Name appendended on the end then you would simply have to edit your perl script some so that it modifies the html output to put a href tag around those links.

The other way is to add another field into your perl script so that besides having the category names and possibly other info, you would have a database field that represents the link to which that category is located. Once you do that all you have to do is edit the script's html output then and simply place the href tags around the category and insert the database field that represents the link in those href tags.

Its really hard to get specific, as your question is pretty general and it might not be the easiest change if you do not have PERL experience. If you do have PERL experience then what I told you above might help.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 33 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.