Re: param

2007-07-01 Thread Tom Phoenix
On 7/1/07, hOURS <[EMAIL PROTECTED]> wrote: I read of a perl function called param, which is part of the CGI.pm perl library. The first simple program I wrote trying to use it didn't work though. At first I thought the ISP hosting my site didn't provide this library, but I was able t

Re: param help!

2004-08-14 Thread Owen
On Sat, 14 Aug 2004 16:37:18 +0530 Shillong Dotcom <[EMAIL PROTECTED]> wrote: > Hi > > I am very very new to perl. And after lots of work I did script a perl > file to handle a online form (products order form). However, I am > stuck at a point. I tried my best but could not get thru. > > The fo

RE: param function

2002-03-16 Thread Gary Hawkins
Web form element names automatically become script variable names and are assigned their values... use CGI 'param'; for $name (param()) { $$name = param($name); } The double $$ is not a typo. Your question resulting in this solution has reduced the script I'm working on, by about 2000

RE: param function

2002-03-15 Thread Tiller, Jason
Hi, Mariusz, :) I don't qualify as an expert, but this might do the trick: my %params; $params{$_} = param($_) foreach param(); If I understand your code correctly, param() returns a list of all the possible keys, right? If so, then the above code should work. You refer to the parameters as

Re: param function

2002-03-15 Thread Tanton Gibbs
You can use the import_names function of CGI import_names( 'R' ); print "name = ", $R::name; This function will import all of the parameters into the namespace provided as the argument (in this case, R). If the parameter is multivalued, then you can use the array form( e.g. @R::name ). Otherw