May 1996
Volume 1, Issue 2
Writing CGI Scripts in REXX Listing Seven /* HtmlTop Returns the <head> of a document and the beginning of the body with the title and a body <h1> header as specified by the parameter. */ HtmlTop: PROCEDURE; PARSE ARG Title RETURN '<html><head><title>'Title'</title></head><body><h1>'Title'</h1>' /* HtmlBot Returns the </body>, </html> codes for the bottom of every HTML page */ HtmlBot: PROCEDURE RETURN '</body></html>' ( back )
Writing CGI Scripts in REXX
Listing Seven /* HtmlTop Returns the <head> of a document and the beginning of the body with the title and a body <h1> header as specified by the parameter. */ HtmlTop: PROCEDURE; PARSE ARG Title RETURN '<html><head><title>'Title'</title></head><body><h1>'Title'</h1>' /* HtmlBot Returns the </body>, </html> codes for the bottom of every HTML page */ HtmlBot: PROCEDURE RETURN '</body></html>'
Listing Seven
/* HtmlTop
Returns the <head> of a document and the beginning of the body
with the title and a body <h1> header as specified by the parameter.
*/
HtmlTop: PROCEDURE; PARSE ARG Title
RETURN '<html><head><title>'Title'</title></head><body><h1>'Title'</h1>'
/* HtmlBot
Returns the </body>, </html> codes for the bottom of every HTML page
HtmlBot: PROCEDURE
RETURN '</body></html>'
( back )
Copyright Web Techniques. All rights reserved.