[Top] [Prev] [Next] [Bottom] [Contents]

SaGetNumInputValues

Returns the number of input element values for the named form input element or 0, if element is not present in the input stream.

Synopsis

#include "SaRnHtml.h"
int SaGetNumInputValues(char* element);

Arguments

element
specifies the name of the form input element to determine how many times it appeared in the input stream.

Return Values

Number of input element values for the named form input element or 0, if element is not present in the input stream. In the case of radio buttons only one (name, value) pair is passed to the server application; i.e whichever is checked. So SaGetNumInputValues() returns one.

Description

This call is used for multiple values for this input element (for example, a multi-select list).

Example

int i, Number;
char* value;
Number = SaGetNumInputValues("MultiFormElementName");
for (i=0; i<Number; i++)
{
	value = SaGetNInputValue("MultiFormElementName", i);
}

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.