zampag
Apr 27th, 2000, 04:02 AM
I am trying to pass a parameter on the URL string simliar to this :
h t t p://server.com/cgi-bin/load.cgi?rpt_name=My Test Report
The code for load.cgi looks like this :
#!/usr/local/bin/perl
require "sybperl.pl";
use CGI;
$query = new CGI;
$rpt_name = $query->param("rpt_name");
The $rpt_name variable only gets "My". If I put quotes around My Test Report, I get a server error. How can I get the entire string, even if there are spaces in the parameter?
Thanks
[Edited by zampag on 04-27-2000 at 05:03 PM]
h t t p://server.com/cgi-bin/load.cgi?rpt_name=My Test Report
The code for load.cgi looks like this :
#!/usr/local/bin/perl
require "sybperl.pl";
use CGI;
$query = new CGI;
$rpt_name = $query->param("rpt_name");
The $rpt_name variable only gets "My". If I put quotes around My Test Report, I get a server error. How can I get the entire string, even if there are spaces in the parameter?
Thanks
[Edited by zampag on 04-27-2000 at 05:03 PM]