Re: CGI URLs in HREFs (was Re: An smtp URL scheme)

Walter Ian Kaye (walter@natural-innovations.com)
Sun, 13 Jul 1997 01:57:27 -0700


Message-Id: <v03102860afee43de142c@[205.149.180.135]>
In-Reply-To: <v0310285fafee403738bf@[205.149.180.135]>
Date: Sun, 13 Jul 1997 01:57:27 -0700
To: www-html@w3.org
From: Walter Ian Kaye <walter@natural-innovations.com>
Subject: Re: CGI URLs in HREFs (was Re: An smtp URL scheme)

 >    if ($fields > 1) {
 >       $eqstr = @eqarr[1];
 >       $amptot = scalar(split(/&/,$eqstr)) - 1;
 >       $semtot = scalar(split(/;/,$eqstr)) - 1;
 >       if ($semtot && $semtot > $amptot) {
 >          $sep = ';';
 >          }
 >       }
 >    @query = split($sep,$query);

Or to be a bit safer:

   if ($fields > 1) {
      $eqstr = @eqarr[1];
      $amptot = scalar(split(/&/,$eqstr)) - 1;
      $semtot = scalar(split(/;/,$eqstr)) - 1;
      if ($semtot && $semtot > $amptot) {
         $sep = ';';
         }
      @query = split($sep,$query);
      }
   else {
      @query = ($query);
      }

__________________________________________________________________________
  Walter Ian Kaye <boo_at_best*com>    Programmer - Excel, AppleScript,
          Mountain View, CA                         ProTERM, FoxPro, HTML
 http://www.natural-innovations.com/     Musician - Guitarist, Songwriter