[REBOL] CGI Re:(2)

2000-10-04 Thread brett

Though, as noted on an earlier message on this list, doing so means that you
will only get one value from a multi-select input.

Brett.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 04, 2000 8:08 PM
Subject: [REBOL] CGI Re:


 Sharriff Aina wrote:
  Sorry to bother you with this newbie question:
  Why does one have to "make object!" after a "decode-cgi" ? just
curious...

 Actually, one doesn't have to, but it's safer for your software if you so,
 as you can put arbitrary Rebol code in the cgi url. Putting the results of
 the decode-cgi in a object minimises the damage the Rebol code can do.

 Andrew Martin
 ICQ: 26227169
 http://members.nbci.com/AndrewMartin/
 http://members.xoom.com/AndrewMartin/
 --





[REBOL] cgi Re:(2)

2000-07-15 Thread norsepower
Well, using...
cgi-input: make object! decode-cgi system/options/cgi/query-string


and then calling "comments-reference" using cgi-input/comments-reference


from the url...
http://www.beosjournal.com/cgi-bin/displaycomments.cgi?comments-reference=
2715121834


Worked! I can now view the comments page, although there are no comments yet 
and here is why: I need to send another reference value to another script 
which processes submitted comments. When I try to submit a comment, I get an 
error because the url ends up being as follows...

http://www.beosjournal.com/cgi-bin/processcomments.cgi?article-reference=
2715121834?heading=First+commentbody=No+comment.name=Gemail=g%40g.mib


As you can see, I try to pass an "article-reference" value by appending the 
url and then also try to pass form values along with the same query string, 
producing double "?" query string markers. I'm working on this. I need to 
figure out how to pass a static value with a form, one that is not generated 
or chosen by the submitter.

-Ryan


[REBOL] CGI Re:(2)

2000-06-14 Thread jeff



   Howdy, Daniel: 

 Thank you for your help, everyone.
 
 This is how far I've got until now :
 
 Apparently,  file access is   working normally only in  the
 first  cgi script launchedby   Apache, all itschild
 processes (subsequent calls of scripts, whether they reside
 in cgi-bin or elsewhere) have  problems to access the local
 file system.

  That's an odd one.  We'll have a closer look at that one
  when we can (cgi with apache for windows, right?), but
  unfortunately don't have a decent answer for why you're
  seeing that behavior right now.

  Is having your cgi-bin script reading and writing files
  outside of cgi-bin what you want to accomplish?

  Perhaps you could have a separate rebol process running
  living in the directory that you want to write files in that
  talks through ports to the cgi-bin program. This background
  REBOL process could do the writing and reading of files on
  the cgi-bin script's behalf.

  -jeff