Re: Filtering CGI Variables

2004-08-13 Thread Bill Stephenson
On Aug 9, 2004, at 4:06 PM, Bob Showalter wrote: Here's the approach I would take (not tested!) my %data; for (param()) { # loop through all parameters if (/^([qtdp])(\d+)$/) { my $prefix = $1; my $num = $2; $data{$num}{prefix} = param($_); } } Bas

RE: Filtering CGI Variables

2004-08-09 Thread Bob Showalter
Bill Stephenson wrote: > Hi all, > > I need some help. I have name/value parameters coming in from a web > form that look something like this (blank lines added for clarity): > > firstname=bill > lastname=stephenson > > q1=1 > t1=y > d1=something 1 > p1=3.45 >

Filtering CGI Variables

2004-08-09 Thread Bill Stephenson
Hi all, I need some help. I have name/value parameters coming in from a web form that look something like this (blank lines added for clarity): firstname=bill lastname=stephenson q1=1 t1=y d1=something 1 p1=3.45 q2= t2=y d2=s