|laziness, impatience, and hubris|
Thank you very much for your answer, but I just haven't got it yet. Please forgive me if I'm too stupid, but I think you are testing if the query string's length is >0, and your code only gets executed if this condition is true.
But when calling the script without any parameters, the length of the query string is 0, and that evaluates to false, so the whole line doesn't get executed.
Please correct me if I am wrong.
In reply to Re^4: Unwanted parameter when executing CGI scripts