Hi Douglas,
You need to write the section that contains the HTML you want to output.
If you have no sections, then just write *TOP and *BOTTOM sections as
follows:

Callp  cgiWrtSection('*TOP')
Callp  cgiWrtSection('*BOTTOM')

Normally an HTML page contains a user-supplied "section". Sections are
similar to record formats in DSPF's. You write a section and the data from
the cgiSetVar()'s are merged with the HTML and written to the browser's
output buffer. When you issue cgiWrtSection('*BOTTOM') (or
cgiWrtSection('*fin') if you're an old CGIDEV2 user) the output buffer is
sent to the browser.


-Bob Cozzi
www.RPGxTools.com
RPG xTools - Enjoy programming again.

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Douglas W. Palme
Sent: Thursday, October 13, 2005 1:23 PM
To: Web400 List
Subject: [WEB400] Outputting html - rpgiv tools

I am using Bob's service program and was working on outputting an html file 
from the ifs that has been merged with some data.....my one question is 
after calling the cgiSetVar and setting the value appropriately, how do I 
output the buffer to the browser?

Here is what I have so far:

H BNDDIR('CGILIB')                                               
 /INCLUDE XTOOLS/QCPYSRC,CGILIB                                  
Dncount           s              2s 0 inz(99)                    
C                   callp     cgiInit()                          
C                   callp     cgiLoadHtmlIFS('/www/apachedft/' + 
C                             'htdocs/loads.html')               
C                   callp     cgiSetVar('MO':ncount)             
.....output code needed..


If you bought it, it was hauled by a truck - somewhere, sometime.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.