Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generating HTML on-the-fly

Status
Not open for further replies.

Kijori

Technical User
Jan 22, 2002
67
SG
i know how to create HTML pages on-the-fly to be displayed as a single frame.

i want to know how to create want and send it to a particular frame of a web page. for example, a page with 3 frames (i.e. banner, navi, target).

what my program does is... after the user logs in... he will be presented with the 3-frame page. i want to customize the navi frame based on who logs in.

how to? thanks a lot.
 
If you are using CGI.pm, check the docs.
Do,
prompt>perldoc CGI -enter-

and search for "WORKING WITH FRAMES". There is a section that lays out how-to.

'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
thanks... went through it and found a bunch of stuff for digestion.

by the way, is it wiser to create web pages on-the-fly for form captures or use pre-created ones? any reasons to it? thanks in advance.
 
' depends on what you want to do. If your pages are fairly static, more or less templates, then you can do plain HTML with some includes for chunks that change from time to time. Or, if your pages are more dynamic, but not 'fluid', then PHP would probably be good tool. For the ulitmate in flexibility and power, CGI with perl works. Apply the correct tools to the job based on the nature of the job.

'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
ok. i'm doing this for my college project. not work related. i get your point.

i went through the CGI.pm doc and found some useful scripts. how do i test them? must i invoke them using some events from a static web page or can i just use the browser to open the script itself without any invocation whatsoever?

many thanks.
 
CGI is a set of rules which, if followed, will let an HTTP request to a web server run a program on that server. In its simplest form, a web server would serve simple static web pages. The Common Gateway Interface (CGI) makes it possible to ask such a server to run a program to generate the HTML output (or anything else you might want to do on the server). So, you would need a web server. I suggest getting Apache. Go to and look for a port for your OS. There are quite a few posts in this forum and two FAQs (see tabs at the top of the page) that give some detail about installing and configuring apache. It is not hard. Just takes a little doing/work......read/follow some directions. You can search for the previous posts on the topic via the search tab(beside the FAQs tab).

'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top