1. CGI sting parser
- Posted by Jeromie <g__vine at hotmail.com> Mar 19, 2002
- 401 views
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
2. Re: CGI sting parser
- Posted by Irv Mullins <irvm at ellijay.com> Mar 19, 2002
- 380 views
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
3. Re: CGI sting parser
- Posted by Robert Craig <rds at RapidEuphoria.com> Mar 19, 2002
- 411 views
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