[Top] [Prev] [Next] [Bottom]
[Contents]
SaSelectOption
Prints an HTML select option form element to an HTML stream.
#include "SaRnHtml.h"
int SaSelectOption(char* evalue, int selected, char* elabel);
Arguments
evalue
- A string specifying the value of the select option element. This string is converted to an HTML compatible string. If evalue is NULL, an empty string is used.
selected
- An integer flag specifying whether the option should be initially marked as selected. A non-zero value adds the HTML fragment:
SELECTED
- to the HTML stream. Otherwise the fragment is suppressed.
elabel
- A string specifying the label of the select option element. This string is converted to an HTML compatible string. If elabel is NULL, an empty string is used.
Return Values
Returns an integer with a value of 0.
Prints an HTML select option form element to an HTML stream.
The code fragment:
SaSelectOption("1", 1, "MAC");
will write:
<OPTION SELECTED VALUE="1" SELECTED >MAC</OPTION >
to the output stream.
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.