Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get information from POST to a cgi ksh (not pearl)

Status
Not open for further replies.
Dec 21, 2010
2
US
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.
 
Hi

CHARTPAPER said:
What am I missing, "while read somevariable" does not get the information into my ksh script.
Then please post that part of your code, so we can suggest correction.

Anyway, in meantime, a man page to read : [tt]cat[/tt].
CHARTPAPER said:
As you can tell I am not a HTML or cgi person.
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top