On Tuesday, May 27, 2003, at 08:28 AM, sasi pillutla wrote:
> I am able to use the HTML content from ".tmpl" file
> I now have different Multiple values (COmbo boxes,
> Text boxes and List boxes) coming from script to be
> set in the HTML from ".tmpl".
> I need to handle or show different info from database
> on selection from combo boxes ...
so, you already are able to generate an html page with a form with all
the values correctly filled in. Now, when you submit it back, grab
those values, do your database query, and remake the resulting html
page. This is how it works...
index.cgi --> index.tmpl --> [a valid web page] --> user
the user sees index.cgi in the browser (and in the URL address box of
the browser), but actually it is index.tmpl converted to a valid web
page and served by the web server. Then
user --> [a valid web page response] --> index.cgi --> index.tmpl -->
[a valid resulting web page] --> user
the user submits the response, it goes back to index.cgi which
processes the response and creates another valid web page. Use CGI.pm
to grab the POST/GET variables, if you wish. Use DBI with the
appropriate DBD for your database to query thd db and get values to
create the new web page. You will have to read up the DBI/DBD and
CGI.pm docs for help with that.