INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

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

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)

Hi

Quote (CHARTPAPER):

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 : cat.

Quote (CHARTPAPER):

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.
http://free.rootshell.be/~feherke/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close