|
|||||||||||
|
Re: When GET = POST?
From: Kevin Spett <kspett(at)spidynamics.com>
Date: Mon Nov 11 2002 - 11:41:05 EST
Here's an example from MSDN that shows how's it's supposed to be implemented
in ASP. As you can see, the developer is expected to use the REQUESTTYPE
variable. Many languages work in a similar way. It's unsuprising that many
developers don't.
<HTML> <% '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% '% File: ADOselect.asp '% Author: Aaron L. Barth (MS) '% Purpose: For testing ADO connectivity to any ODBC Datasource '% Disclaimer: This code is to be used for sample purposes only '% Microsoft does not guarantee its functionality '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% if Request("REQUESTTYPE") <> "POST" then ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' % If the request does not contain REQUESTTYPE = "POST' % then display Form Page
' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
dsn = Session("dsn")
dbuser = Session("dbuser")
dbpass = Session("dbpass")
...etc...
Kevin Spett
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:44 EDT |
||||||||||
|
|||||||||||