in reply to CGI scoping question
You have seemed to have left quite a bit out of your description.
but based on what you did say let me propose an explanation. If i expected that
was to give me the value of a cgi parameter called orderby i would expect to see a html section something likemy $index = $q->param('orderby');
But i do not see you posting such a section.<input type="text" name="orderby" value="10" />