[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_ConnGetQuery

Overview

Construct Ns_Set representing query data

Syntax

    Ns_Set *Ns_ConnGetQuery(
    Ns_Conn *conn
    );

Description

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.

Note that you must not call Ns_SetFree on the result of this function.

Examples

    	/* 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");
    	}

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.