Clear CGIIN on ARMweb
Posted: Wed Jan 30, 2013 5:55 am
Is there a way to clear the buffer used by CGIIN in between requests? One
problem is that if the length of one input is shorter than the input before it,
part of the previous input remains and I have no way to tell where the current
input ends.
For example, if the first request is my.htm?123456789, CGIIN returns
"123456789". But if the next request is my.htm?abcde, CGIIN returns
"abcde6789".
So if possible, I'd like to be able to clear the buffer after reading input from
it.
TIA,
MM
problem is that if the length of one input is shorter than the input before it,
part of the previous input remains and I have no way to tell where the current
input ends.
For example, if the first request is my.htm?123456789, CGIIN returns
"123456789". But if the next request is my.htm?abcde, CGIIN returns
"abcde6789".
So if possible, I'd like to be able to clear the buffer after reading input from
it.
TIA,
MM