get information from POST to a cgi ksh (not pearl)
get information from POST to a cgi ksh (not pearl)
(OP)
I have a HTML form that I am changing from GET to POST. I cannot seem to get the information passed from the form into a plain cgi ksh script. If I replace the ksh script with a pearl script I am able to get the information, so I know my form is working correctly. I have not been able to figure out how to get the information from STDIN when called by cgi from a html form using ksh. I do not want to rewrite a very involved ksh script into a pearl script. What am I missing, "while read somevariable" does not get the information into my ksh script. As you can tell I am not a HTML or cgi person. I was able to get the GET form to work about five years ago and now need to change this form into a POST form.
RE: get information from POST to a cgi ksh (not pearl)
Then please post that part of your code, so we can suggest correction.
Anyway, in meantime, a man page to read : cat.
Then I strongly suggest to not write CGI scripts in such low level language, as shell script. Use a language which has a dedicated module for CGI specific data handling.
Feherke.
http://free.rootshell.be/~feherke/