I'm just learning Apache. I have a form using "method='post'" and I can easily retrieve the form values in Perl or PHP. I'd like to play with that information on the server (my own Windows machine) directly just to learn. I expect that it must be stored in a temp file before being fed to my Perl/PHP program; how do I find that stored data?
I'm just learning Apache. I have a form using "method='post'" and I can easily retrieve the form values in Perl or PHP. I'd like to play with that information on the server (my own Windows machine) directly just to learn. I expect that it must be stored in a temp file before being fed to my Perl/PHP program; how do I find that stored data?
ADDENDUM: My memory is a little fuzzy, but I would think you could also read the raw POST data from STDIN in PHP too.
Thank you. I already found it in Perl and PHP; I'm being wierd trying to find it outside of those.
My youngest brother wants to take orders for products over the web and process them in Basic. He knows Basic and refuses to learn anything else, so I'm looking for a Basic solution. I haven't found the proper combination of "open" and "input" to pull the "post" data in Basic, and I haven't found a way to convince him to learn Perl or PHP.
While working on the Basic problem, I decided to try for a truly generalized solution that would work for any language. Believe it or not, I almost have it for DOS batch files! Unfortunately, "almost" isn't quite what I want. Yes, I'm wierd!
I think it would work the same way though. A CGI app is basically fired up like a regular process for each matching HTTP request (edit). And, unless my memory has grown foggy, the headers and POST data are piped in through STDIN. Can't say offhand how you read from standard input in BASIC ... but, I'm pretty sure that's how you'd get what you need.
Bookmarks