You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Chaz <ch...@ro0t.com> on 2002/11/26 13:00:47 UTC
Possible bug in $Request
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@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: Possible bug in $Request
Posted by Josh Chamas <jo...@chamas.com>.
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@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org