1. CGI sting parser

Has anyone made a cgi string parser??
Ive been working on using Eu with CGI's and
discover'd gettign the data out of the cgi
string when its more then 1 variable is not
easy. Any hints on how to extract the strings?


Jeromie Reeves
Grape Vine
13728824

new topic     » topic index » view message » categorize

2. Re: CGI sting parser

On Tue, 19 Mar 2002 23:18:33 +0000
Jeromie <g__vine at hotmail.com> wrote:

> 
> Has anyone made a cgi string parser??
> Ive been working on using Eu with CGI's and
> discover'd gettign the data out of the cgi
> string when its more then 1 variable is not
> easy. Any hints on how to extract the strings?
> 

Take a look at http://www.RapidEuphoria.com/cgi.tar.gz

There's a file in there "demung.e" which takes care of 
the problem.

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

3. Re: CGI sting parser

Jeromie Reeves writes:
> Has anyone made a cgi string parser??

Besides Irv's code, you could also look at the
Euphoria CGI program, economy.exu, that we have 
running now on FreeBSD:

http://www.rapideuphoria.com/economy.txt

It handles the HTML form input at:

http://www.rapideuphoria.com/ecoform.htm

The function parse_input() converts from the CGI-style:

aaa=bbb&ccc=ddd&eee=fff

to the Euphoria sequence:
{
  {"aaa", "bbb"},
  {"ccc", "ddd"},
  {"eee", "fff"},    -- etc.
}

(If you run it, please indicate that it's just a test.)

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu