Click to See Complete Forum and Search --> : search option


johnj
11-10-2005, 04:58 AM
hello
Does anyone know the best way to have a search optioin on my website , so that users can search a data base and give them back the results???
thanks
J

gube
11-17-2005, 12:13 AM
Hi johnj,

what way you expecting i don't know..just i am throughing my suggestion. you just write one subroutine in your cgi file for search. what ever the user search get the text and pass to the subroutine. In the subroutine you better get the valuable information from the database you want to show and return and get it and just view the details in the page..

Better, you use cgi::application framework to do better and for html use HTML::Template to solved this it;s quite easy. Are anyother way you want explain it brief.

If doubt is too complex better you ask in perlmonks.com. you get answers a lot..

Thanks .
Gube.
language(perl | die)

vishi83
11-17-2005, 04:06 AM
Hi man , :confused:

For developing an application with the search option ,

u required to build an MVC ..

U need to write one module .. say example.pm

this pm file should use modules like CGI::Application and your DB module

write your search subroutine in this pm file..

You may need a template ( say search.tmpl) for this run mode

You may also require a instance script (example.pl or .cgi file) ..

Before that ,,

see perldoc CGI::Application ( note: install this module from CPAN )

Also go to perlmonks.com to see your query being answered many times...


Thank you ,
vishi83