![]() |
![]() ![]() ![]() ![]() |
Construct Ns_Set representing query data
Ns_Set *Ns_ConnGetQuery( Ns_Conn *conn );
The Ns_ConnGetQuery function constructs and returns an Ns_Set structure representing the query data associated with the connection. It reads the POST content or the query string. The POST content takes precedence over the query string.
/* Get the value from an <INPUT NAME="mydata"> form tag. */ Ns_Set *set; char *value; set = Ns_ConnGetQuery(conn); if (set != NULL) { value = Ns_SetGetValue(set, "mydata"); }