PDA

View Full Version : Getting form information in CGI.



sean
04-05-2002, 05:28 PM
Okay, I need to write CGI script that get's it's input from a form. CI've asked question aobut it before, but I don't think I was sepcific enough, and got a useless answer. Could some write a REALLY simple program to get the information from a form and into a variable (with POST or GET, either one). It doesn't have to be parsed or anything. And also, if I want to use the environment variable CONTENT_LENGTH, would I have to have the main prototype be int main(int argc, char *argv[], cha env[]) or how ever it goes?