Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipX.Lib v1.2 - <b>header()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
header()
Returns/writes required context-header
-----------------------------------------------------------------------

Syntax:

  header( [< cText >] )  --->  cString

Arguments:

  [< cText >] is an optinal character string which will override the
  default content-type header generated.

Returns:

  A character string consisting of two lines which define the required
  content-type information.

Description:

  Generates the required context-header. This is required by most browsers
  as the first 2 lines of the response from the CGI program to the
  web server.

    The output looks like this:
    Content-Type: text/html   <-- Line 1
                              <-- Line 2 Required blank separator line

Examples: :

  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()
  return(NIL)

Alternate:

  htmlWrite( 'Content-Type: text/html' + chr(13)+chr(10) + chr(13)+chr(10) )

Files: Library is ClipX.Lib

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson