[Top] [Prev] [Next] [Bottom]
[Contents]
SaFormRadio
Prints an HTML radio form element to an HTML stream.
#include "SaRnHtml.h"
int SaFormRadio(char* ename,
char* evalue,
int checked,
char* elabel);
Arguments
ename
- A string specifying the name of the radio element. This string is converted to an HTML-compatible string. If ename is NULL, an empty string is used as the element name. You should give the same name to all radio elements that are a set of alternatives. Only one should be checked.
evalue
- A string specifying the value of the radio element. This string is converted to an HTML-compatible string. If evalue is NULL, an empty string is used.
checked
- An integer flag specifying whether the element should be initially marked as selected. A non-zero value adds the HTML fragment:
CHECKED
- to the HTML stream. Otherwise the fragment is suppressed.
elabel
- A string specifying the label of the radio 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 radio form element to an HTML stream.
The code fragment:
SaFormRadio("OS", "1", 1, "MAC");
will write:
<INPUT TYPE="radio" NAME="OS" VALUE="1" CHECKED "MAC">
to the output stream.
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.