|
Send
Sends HTML in the response page to the visitor.
- Syntax
-
Send Param1[, Param2[, Param3[, ...]]]
Call Send(Param1[, Param2[, Param3[, ...]]])
Params - Text that gets sent to the visitor.
Param1 is required but the others are not.
Remarks
This procedure writes Text to Standard-Out.
Standard-Out goes to your visitor's browser.
Parameters separated by commas get sent with a space between them.
The following two lines have equivalent results.
Send Names(i) & " = " & Request(i)(1)
Send Names(i), "=", Request(i)(1)
Send does not add a New-Line to the end of the text sent
because the browser sees it as white space which can affect the design.
To send a New-Line at the end of the text sent, see the SendLn command.
Unlike the Print command in Perl or printf in C,
Send does not evaluate any kind of escape character.
This is by design since an HTML template might contain
the escape character that should not be interpreted.
To do that sort of thing, use the Escape command.
See also: SendLn.
|
SendLn
Sends HTML to the visitor just like Send but also adds a New-Line to the end.
- Syntax
-
SendLn Param1[, Param2[, Param3[, ...]]]
Call SendLn(Param1[, Param2[, Param3[, ...]]])
See also: Send.
|
ServerVariables
Returns a string of Name/Value pairs from the server.
- Syntax
-
TextOut = ServerVariables()
Remarks
There should be no need for you to call ServerVariables
since LoadRequest does that already.
These Name/Value pairs (or Terms)
are actually the entire set of Environment variables.
You could use the Environ VB command to get the values.
But don't.
If you test your CGI script in the VB Development Environment,
you will not get the values backed up from the CGI environment.
The CGI environment "inherits" more terms from the web server.
These are the Server Variables most useful to a CGI script.
Some of the Server Variables are HTTP headers from the browser.
Because web servers often have proprietary Server Variables,
this command cannot distinguish between Server Variables and Environment variables.
Therefore, ServerVariables just gets them all.
You can find a list of the most useful ones
in the General Declarations section of the VbWeb.Bas module.
Note: This command is not intended for public use so be careful.
It is already called by the LoadRequest command.
|

|
|
|