Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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.
http://support.microsoft.com/default.aspx?scid=KB;en-us;q165671

<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
SPI Labs
http://www.spidynamics.com Received on Mon Nov 11 12:20:51 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:44 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library