{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 Common Gateway Interface Part 2\par \par By: Samanddeanus@yahoo.com\par \par \par In the previous CGI tutorial (see http://www.petesqbsite.com/sections/express/issue27/index.html), I described how to use the CGI get method. This tutorial will cover the CGI post method, setting cookies, and other information.\par \par === POST method ===\par The post method is basically the same as GET except that it puts the query string to STDIN. The number of characters to read is in the environmental variable CONTENT_LENGTH which you can access with ENVIRON$(CONETENT_LENGTH). The query string is in the same format as with get -- spaces become plus signs and special characters are URL-percent encoded (percent sign followed by ASCII value in hexadecimal):\par \par name=value&name2=value etc.\par \par To use the POST method, merely change
\par \par \par \par \par === Example 3: Web Based Forum ===\par \par http://samanddeanus.no-ip.org/forum.htm\par http://samanddeanus.no-ip.org/reply.bas\par http://samanddeanus.no-ip.org/start.bas\par \par \par \par \par }