in reply to Re: Handling Dynamic URL Parameters
in thread Handling Dynamic URL Parameters
I'm not familiar with how CGI returns values, and I dont understand how this script works exactly.
for my $param ($q->param)
This gets an array of all the parameter names
next unless $param =~ /.*(?:~.+){2}/;
This checks for zero or more of any character followed by 2 occurances of either ?:~.+
my ($id1,$id2,$id3) = split/~/,$param);
$param is a string of values and you spilt on the ~
I guess my confusion is on the distinction between parameter name and values here. Could you give an example URL that you would pass to have this script work?
the_Don
...making offers others can't rufuse.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re3: Handling Dynamic URL Parameters
by Solo (Deacon) on Sep 13, 2002 at 18:06 UTC | |
by the_Don (Scribe) on Sep 13, 2002 at 18:14 UTC |