
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipX.Lib v1.2 - <b>htmlwrite()</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
htmlWrite()
Writes a string to the web server
------------------------------------------------------------
Syntax:
htmlWrite( <cText> ) ---> lSuccess
Arguments:
<cText> is a character string to write to the Web Server.
Returns: A logical value
Description:
Writes a string from the CGI program to the web server via
standard-out.
Examples:
Example 1: Using htmlWrite() with other X-Hacker.orgfunctions
function main()
if !ClipXOpen()
Quit // or Your end of application routine
endif
header()
htmlBeg()
headBeg()
TitleBeg("My Title")
TitleEnd()
headEnd()
bodyBeg( 'bgcolor="white" ' )
htmlWrite( 'Hello World!' )
bodyEnd()
htmlEnd()
ClipXClose()
return(NIL)
Example 2: Roll your own "Hello World"
function main()
if ! ClipXOpen()
Quit // or Your end of application routine
endif
header()
htmlWrite( "<html><head><title>My Title</title></head>" +;
'<body bgColor="white">Hello World</body></html>' )
ClipXClose()
return(NIL)
Files: Library is ClipX.Lib
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson