Loading ...
Sorry, an error occurred while loading the content.
 

Possible bug in $Request

Expand Messages
  • Chaz
    Errors Output 1. Sort subroutine didn t return a numeric value at /var/www/vhosts/support.ne-worcs.ac.uk/reports/report.asp line 131. ,
    Message 1 of 2 , Nov 26, 2002
      Errors Output

      1. Sort subroutine didn't return a numeric value at
      /var/www/vhosts/support.ne-worcs.ac.uk/reports/report.asp line 131. ,
      /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 1489

      131: if($Request->Form('sort_by') eq 'surname'){

      sort_by is the result of a radiobutton, and has two possible values,
      'surname' and 'amount'. This error only occurs when 'total' is chosen.
      If 'surname' is chosen, the script runs correctly.




      ---------------------------------------------------------------------
      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    • Josh Chamas
      ... Check if there is a sort around this line that could be the culprit ... Try also the $Request- {Form}{sort_by} syntax instead. Either way the error message
      Message 2 of 2 , Nov 26, 2002
        Chaz wrote:
        > Errors Output
        >
        > 1. Sort subroutine didn't return a numeric value at
        > /var/www/vhosts/support.ne-worcs.ac.uk/reports/report.asp line 131. ,
        > /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 1489
        >
        > 131: if($Request->Form('sort_by') eq 'surname'){
        >

        Check if there is a sort around this line that could be the culprit ...

        Try also the $Request->{Form}{sort_by} syntax instead.

        Either way the error message does not really correlate with the code
        and is odd.

        Regards,

        Josh


        ---------------------------------------------------------------------
        To unsubscribe, e-mail: asp-unsubscribe@...
        For additional commands, e-mail: asp-help@...
      Your message has been successfully submitted and would be delivered to recipients shortly.