Ged Haywood wrote: [snip] >>>I have a simple form [snip] >>>The problem is that I only see the values printed when I use the "GET" >>>option in the form above, when I change "GET" to "POST" nothing gets >>>printed... >>POST data can only be read once, if you want to read it again you have >>to save it somewhere. It looks to me like before you try to read it, >>it's being read by something else and therefore lost to you.
>>This question seems to crop up quite a lot (if this is the right answer:) >Off topic for the perl list but since you all saw the question... >The problem was related to the form's enctype specifier, I saw an error message in the apache log > >" [libapreq] unknown content-type: `text/plain'" > >Now I'm not really sure where the variables disappeared to (an explanation would be kind) but as soon >as I removed this specifier the data started showing up right in the handler even when using >"POST".................. >anyone care to explain this please? Hmm... That looks like the form is not being submitted properly. When you submit a form, it can encode it in a number of ways. The most popular standard way is to use application/x-www-form-urlencoded (which means that the POST content is formatted to look like a query string: param=some+value&otherparam=anotherval) or, if there's an upload, mutlipart/form-data (which makes the POST data resemble a MIME email with boundaries). If you specify another type, then libapreq might chocke on it, not knowing how to interpret the data it recieves. Does that help a bit? Issac