Returns the next available argument (name-value pair).
|[out] ||name ||Output Parameter: A pointer to a valid char-pointer variable. After the function call the char-pointer variable points to a c-string with the argument-name.|
|[out] ||value ||Output Parameter: A pointer to a valid char-pointer variable. After the function call the char-pointer variable points to a c-string with the argument-value.|
|[in] ||CgiRequest ||Input Parameter: The CGI request pointer which was passed to the CGI function.|
- zero (CGI_ARGUMENT_ERR_OK) on success, -1 (CGI_ARGUMENT_ERR_NONE) on failure, which means no more arguments available.
- On the first call the function returns the first found argument. On next calls the function returns the next found argument, until no more arguments could be found. Note that this function must be called within the context of a CGI function. The pointers returned by the function are valid only while the CGI function is active. On return from the CGI function the pointer will become invalid.
The name, value pairs returned by this function are already decoded. You don't have to call CGI_UrlDeocde() yourself.
while ( CGI_GetArgument( &name, &value, CgiRequest ) == CGI_ARGUMENT_ERR_OK )
"Name : %s\r\n"
- SC2x3 V1.00 - CLIB V1.00