Radim HABALA wrote:

> I compiled this program gcc -o /usr/local/apache/cgi-bin/anone anone.c;
> when I tried it directly, with seted enviroment variable AN everithing
> works OK, but when I tried it from WWW, I got error 500.
> 
> How can I to solve my problem? Where in this problem?

You misunderstand how form data is passed to a CGI script.

For an HTTP GET request, a ? then the form data are appended to the
URL (note that the URL shouldn't contain a ?).

The HTTP server stores the text following the ? in the environment
variable QUERY_STRING.

So your form (assuming that you removed the `?FN=A' from the URL)
would result in QUERY_STRING being set to either `AN=ANO' or `AN=NE'.

If you are planning on writing CGI scripts, you should get a copy of
the CGI specification from:

        http://hoohoo.ncsa.uiuc.edu/cgi/interface.html

-- 
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to