My REBOL cgi doesn't work
------------
I have the following statement in an html form...
<FORM METHOD=POST ACTION="/cgi-bin/cgiemailer.r">
the html form is in the same directory as the /cgi-bin folder.
------------
Here is the contents of cgiemailer.r in the cgi-bin directory...
#!rebol -cs
REBOL []
print "Content-Type: text/plain^/" ;-- Required Page Header
set-net [[EMAIL PROTECTED] pop.mail.domain.net]
send [EMAIL PROTECTED] decode-cgi system/options/cgi/query-string
print "Email sent."
-------------
Here are the permissions as seen in the cgi-bin directory...
230-Sun Microsystems Inc. SunOS 5.7 Generic October 1998
Remote system type is UNIX.
-rwxr-xr-x 1 user www 584 Mar 17 21:21 cgiemailer.r
-rw-r--r-- 1 user www 20691 Mar 3 23:08 nntp.r
-rwxr-xr-x 1 user www 292855 Mar 3 23:08 rebol
-rw-r--r-- 1 user www 3851 Mar 3 23:08 rebol.r
------------
The problem I am having is when I fill out the form (I leave no blank
fields) the browser returns the cgiemailer.r script as text in the
browser. Do I need to tell the server to recognize .r files somehow?
I don't know how to do it exactly, but it must be something similar to
setting up the server to recognize .html files for server side
includes, as follows...
Options Indexes FollowSymLinks Includes
AddType application/x-httpd-cgi .cgi
AddType text/x-server-parsed-html .html
Thanks in advance.
-Ryan