Que?? Not sure why you are using read-io when using GET. The first line is
all you need to decode
your query string for GET.

Probably a good idea to look at the CGI examples on the REBOL site.
Here are some places to look...

In the library http://www.rebol.com/examples.html

Cgi-form for a GET example
http://www.rebol.com/examples/txt/cgiform.html

In userslib http://www.rebol.com/userlib.html

Cgi-input shows Post and Get
http://www.rebol.com/userlib/txt/cgi-input.html

Cgi How-To shows Post and Get examples..
http://www.rebol.com/howto.html#cgi-scripts.html


Cheers

Allen K


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 09, 2000 3:26 PM
Subject: [REBOL] post vs get


> When using the HTMP <FORM ACTION="/cgi-bin/appl1.r" METHOD=GET>
>
> I extract data like  this:
>
> *********************************
>   cgi: make object! decode-cgi system/options/cgi/query-string
>   read-io system/ports/input data: make string! 2000 2000
>   write %form.html reduce

>       <html><body><HI STYLE="page-break-after:always">
>       <CENTER><h2>"K.B.I. Application"</h2></CENTER><H5>
>
>
>      "Name:"   cgi/name
>
>
>   etc.  etc..
> *********************************
>
> What would I change if I wanted to use the POST vs. GET ?
>
> /john
>

Reply via email to