[ic] form post vs query string
Kevin Walsh
kevin at cursor.biz
Wed Nov 19 18:32:19 EST 2003
Marc Brevoort [marc.brevoort at armazemdedados.com] wrote:
>
> The CGI tag gives me both posted variables and variables specified in the
> query string of the URL.
>
> I have a situation where it would be useful to be able to distinguish
> between them, is it possible to read variables only from either the set
> of posted form variables or the variables specified in the query string?
>
I can't quite see why you'd need to distinguish between the two, but
you could parse the results of [env QUERY_STRING] to verify the source
of a [cgi] variable.
Also, check the value of the TolerateGet directive in your interchange.cfg
file (defaults to "No"). If TolerateGet is "No" and [env REQUEST_METHOD]
is "POST" then [cgi] will only contain POSTed variables. If the request
method is "GET" then [cgi] will only contain URI parameters. If
TolerateGet is "Yes" then [cgi] may contain a mix of POSTed values and
URI parameters.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list