[ 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.

Example

    	/* 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 © 1996 America Online, Inc.