- From: Walter Ian Kaye <walter@natural-innovations.com>
- Date: Sun, 13 Jul 1997 01:57:27 -0700
- To: www-html@w3.org
> 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
Received on Sunday, 13 July 1997 04:59:20 UTC