WriteCGIStringN()
Syntax
Result = WriteCGIStringN(String$ [, Encoding])Description
Write a string to the CGI output, including a carriage return.
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) ; Using cariage return will make the page more readable when using "Show page source" in the browser ; WriteCGIStringN("<html><title>PureBasic - test</title><body>") WriteCGIStringN("Hello from PureBasic CGI<br>") WriteCGIStringN("Actual time: <b>"+FormatDate("%hh:%ii", Date()) + "</b>") WriteCGIStringN("</body></html>")
See Also
InitCGI(), WriteCGIHeader(), WriteCGIString()
Supported OS
All