in reply to Re^3: ajax in perl cgi
in thread ajax in perl cgi

CGI::param called in list context from /usr/local/share/perl/5.20.2/CGI/Ajax.pm line 485, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.20.2/CGI.pm line 407.

Replies are listed 'Best First'.
Re^5: ajax in perl cgi
by poj (Abbot) on Mar 25, 2016 at 07:51 UTC
    sub perl_func {
      my @input = @_; # change from @{$_[0]};
    .
    .
    

    Line 46 - change ; to "

    <td><input type="submit" value="Submit" onClick="exported_func +( ['stu_id','stu_name','addr','dept'], ['resultdiv'] ); ></td>
Re^5: ajax in perl cgi
by Anonymous Monk on Mar 25, 2016 at 07:20 UTC

    Regarding that particular warning, CGI::Ajax could use an update for the latest version of CGI

    You need more info, use

    $pjx->DEBUG(1); # turn debugging on, check your web server logs $pjx->JSDEBUG(2); # turn javascript debugging on, no javascript comp +resstion
    and report back
      I added this two lines But same message print error log file Please give some another method to perform ajax in perl cgi
        Where did you add them? Add it Before output html