Results 1 to 2 of 2

Thread: Passing parameters to CGI from VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    13
    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

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    try:
    Use the webbrowser control, set on invisible and do this
    Code:
    WB1.Visible = False
    WB1.Navigate "http://server.com/cgi-bin/load.cgi?rpt_name=My_Test_Report"
    'Try that???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width