CGI
Posted: Sun Nov 27, 2005 12:29 pm
Dear friends, I have a problem to get CGI to work (any language, I tried
xHarbour and C, it used to work the last time I tried it...). I can write the
results to the browser (stdout) but I cannot receive anything from stdin:
localhost/mysite/test.htm
TEST.EXE is:
The result is an empty string.
"Received:"
What am I missing?
Thank you in advance for any help.
EMG
xHarbour and C, it used to work the last time I tried it...). I can write the
results to the browser (stdout) but I cannot receive anything from stdin:
localhost/mysite/test.htm
Code: Select all
<HTML>
<BODY>
<FORM METHOD = "post" ACTION = "test.exe?Param=Test">
<INPUT TYPE = "submit" VALUE = "Send">
</FORM>
</BODY>
</HTML>
Code: Select all
#include "Simpleio.ch"
FUNCTION MAIN()
?? "Content-type: text/html"
?
? "<HTML>"
? "<BODY>"
? "Received: " + FREADSTR( 0, 256 ) + "<BR>"
? "</BODY>"
? "</HTML>"
RETURN NIL
"Received:"
What am I missing?
Thank you in advance for any help.
EMG