WriteCGIString()
Syntax
Result = WriteCGIString(String$ [, Encoding])Description
Write a string to the CGI output.
Parameters
String$ The string to write. Encoding (optional) The string encoding to use. It can be one of the following value: #PB_UTF8 (default) #PB_Ascii
Return value
Returns non-zero if the string has been successfully written to the CGI output.
Example
If Not InitCGI() Or Not ReadCGI()
End
EndIf
WriteCGIHeader(#PB_CGI_HeaderContentType, "text/html", #PB_CGI_LastHeader)
WriteCGIString("<html><title>PureBasic - test</title><body>" +
"Hello from PureBasic CGI<br>" +
"Actual time: <b>"+FormatDate("%hh:%ii", Date()) + "</b>" +
"</body></html>")
See Also
InitCGI(), WriteCGIHeader(), WriteCGIStringN()
Supported OS
All