Superbase Internet
Server Function Reference
SUB HTML(Text$)
Params:
Text$ Single-line of HTML
Examples:
CALL HTML("<B>Hello world!</B><P>")
Msg$ = "<H3>This is a heading.</H3>"
CALL HTML(Msg$)
Notes:
Outputs a single-line of text to the HTML output file.
The tilda (~) character may be used in place of the double-quote
(") character within the input string.
The maximum length of the string is 4000 characters.
SUB HTML_Include(FileName$)
Params:
FileName$ Path and name of a text file.
Examples:
CALL HTML("Our payment policy is:<P>")
CALL HTML_Include("C:\PAYMENT.HTM")
Notes:
Inserts the text file into the outputted HTML file. This is
useful when you wish to reference documents which you need
to be able to frequently update.
FUNCTION HTML_GetValue$(ItemName$)
Params:
ItemName$ Name of an HTML form element.
Returns:
Text posted with the HTML
Examples:
HTML
<form action="post" method="/sbhtml.exe?TestForm">
<input type="text" name="MyForm">
<input type="submit" value="&Ok">
OnDrawPage.TestForm
InputText$ = HTML_Value$("MyForm")
CALL HTML("You entered:" + InputText$ )
Notes:
ItemName$ must be the same name as a posted form variable.
The values are held globally that is, regardless of how many
forms have been previously posted, the value may always be
referenced.
HTML_Value$() is equivalent to this machine.
The form "variable" may be explicitly set using
the HTML_SetValue() command.
SUB HTML_SetValue(ItemName$,ItemValue$)
Params:
ItemName$ Name of an HTML form element.
ItemValue$ New value for the form "variable"
Examples:
CALL HTML_SetValue("MyForm","Test Text")
Notes:
Explicitly sets the value of a form "variable".
SUB HTML_Logoff()
Examples:
CALL HTML_Logoff()
Notes:
De-allocates memory and form "variables" for the
current user. This routine should be called on the last page
the user receives in any session.
VARIABLE DDEC_OutFile$
Notes:
The name (and full path) of the current HTML output file.
VARIABLE DDEC_InFile$
Notes:
The name (and full path) of the input file. This contains
any form information posted to the Superbase Internet Server.
VARIABLE DDEC_CGIIni$
Notes:
The name (and full path) of the CGI .INI file. This standard
Windows .INI file contains information about the browser,
webserver, date, time, and request information.
|