Re: [q-lang-users] sharing CGI library, potential for inclusion in Q
Brought to you by:
agraef
From: Tim H. <q...@st...> - 2004-09-21 17:57:09
|
Dr....@t-... (Albert Graef) writes: > Tim Haynes wrote: >> // read in all of stdin >> readIn = "" if eof; >> = reads ++ readIn otherwise; > > Hmm, I wonder whether that really works. IIRC reads removes the line > ends. Or is that your intention? Otherwise you could simply do a `fget > INPUT'. I'm not sure; however, I have used it to receive multi-line data from a textarea field through a POST operation, with success. Actually, that bit took me a while to make work; given that POST is just GET strings on stdin instead of via QUERY_STRING, I was rather surprised that my tests worked on command-line but not for real CGIs. Either way, the script as-presented now works. ~Tim -- <http://spodzone.org.uk/> |