#1
  1. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    I am using server side includes on a site and also have forms that post information to a perl script which then returns HTML content.

    I believe that in order to maintain the use of SSIs for the page's layout, I would have to use <!--#include virtual="scriptname.cgi" -->

    Now if I want to send values to the script, is there a better way than to use the get method and send the query string to the perl script?

    Thanks,
    Ryan
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>is there a better way than to use the get method and send the query string to the perl script?

    When using SSI to call up your script, it's always GET method. You either have to predefined all the subroutines for the tasks that the script should do or you may pass query string (thru SSI) to your script.

    Examples:
    1) <!--#include virtual="scriptname.cgi?file=foobar&ext=html"-->
    This won't work

    2) <!--#include virtual="scriptname.cgi?file=foobar& amp; ext=html"--> (without spaces)
    Note, the & character needs to convert to "& amp;" (without spaces) in order to work

    [This message has been edited by freebsd (edited July 09, 2000).]
  4. #3
  5. No Profile Picture
    ledjon
    Guest
    Devshed Newbie (0 - 499 posts)
    Wow, I'd been wondering that for a while.

IMN logo majestic logo threadwatch logo seochat tools logo