Re: OO -> Cgi->param not working with inheritance

2009-02-24 Thread Dermot
2009/2/24 Brent Clark : > Chas. Owens wrote: >> >> On Tue, Feb 24, 2009 at 03:20, Brent Clark >> wrote: >> snip >> > > Thank you. > > I understand and its working now ( even a few lines less ;) ). Perhaps it's just me, but I can't find Chas's response in the archive. Any chance that you might for

Re: OO -> Cgi->param not working with inheritance

2009-02-24 Thread Brent Clark
Chas. Owens wrote: On Tue, Feb 24, 2009 at 03:20, Brent Clark wrote: snip Thank you. I understand and its working now ( even a few lines less ;) ). Kind Regards Brent Clark -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org h

OO -> Cgi->param not working with inheritance

2009-02-24 Thread Brent Clark
understand #use CGI # my $cgi = new CGI; use htmlhandler; my $h = new htmlhandler; #print $cgi->header(); print $h->header(); #( This works ) #my @r = $cgi->param(); #( @r is populated ) my @r = $h->param(); # ( @r is NOT popuated ) print @r; My understanding that through inher

RE: variable in cgi param

2007-07-23 Thread Moon, John
-Original Message- From: ubergoonz [mailto:[EMAIL PROTECTED] Sent: Monday, July 23, 2007 10:06 AM To: Perl Beginners Subject: variable in cgi param Hi, I am trying to parse a param in cgi script. basically how can i make use of a for loop to parse the variables, from the url http

Re: variable in cgi param

2007-07-23 Thread thomas polnik
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, > for ($1=1; $i <= $cgi->param('totalkey') ; $i++) { $1 is not $i - If you would use 'use strict', you would find mistakes like this very easy :) > print "$i - $cgi->param('ip$i') cgi->par

Re: variable in cgi param

2007-07-23 Thread jm
i have used this, just to display all param()s and verify the data being passed. i'm thinking someone showed me a newer version for looking at multiple values for checkboxes, etc. but i'm not sure and i don't have more recent code available to verify. hope this helps ##

variable in cgi param

2007-07-23 Thread ubergoonz
Hi, I am trying to parse a param in cgi script. basically how can i make use of a for loop to parse the variables, from the url http://someplace/cgi-bin/script.cgi?ip1=xxx.xxx.xxx.xxx&hn1=blah&ip2=xxx.xxx.xxx.xxx&hn2=blah&ip3=xxx.xxx.xxx.xxx&hn3=blah&totalkey=3 for

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,

param

2007-07-01 Thread hOURS
Hi all, 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 to use other comman

Re: CGI question on param

2006-07-07 Thread Mr. Shawn H. Corey
Mike Martin wrote: > Does anyone know if there is any way to split the param list returned > by CGI.pm by record ie: > > I have an input form which is populated from a DB query which can have > unlimited numbers of records. > It would be easier to answer your question if you

CGI question on param

2006-07-07 Thread Mike Martin
Does anyone know if there is any way to split the param list returned by CGI.pm by record ie: I have an input form which is populated from a DB query which can have unlimited numbers of records. When the parameters come in the individual params are split, but not the lines for each form. Is

Re: Simple Issues with Pod (on verbose and help page without param).

2006-04-03 Thread Tom Phoenix
On 4/3/06, Edward WIJAYA <[EMAIL PROTECTED]> wrote: > 1. How can I make the code below return man page when I simpy do: > $ perl mycode.pl > > Namely no param is passed here. unless (@ARGV) { # no command-line args pod2usage(-verbose => 2);

Simple Issues with Pod (on verbose and help page without param).

2006-04-03 Thread Edward WIJAYA
no param is passed here. 2. Verbose 1 status below doesn't return anything when I do: $ perl mycode.pl -help. What's wrong with it? === mycode.pl == !/usr/bin/perl -w use strict; use Data::Dumper; use Getopt::Long; use Pod::Usage; my $some_param = 5; #Default value my $hel

"gost" content in CGI param()

2005-04-11 Thread Fernando Villar
receives "gost" content in one of these params. I mean that the content of the param does not match the content of the input field, in fact it is nothing to do with it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.

param, ::, defined; was Re: help me

2004-10-30 Thread Chris Devers
Please use a descriptive subject line. On Sat, 30 Oct 2004, rocky karhe wrote: > can anybody tell me where can i get help for perl like: > 1) param() You mean the param() function from CGI.pm? See `perldoc CGI`, or http://www.perldoc.com/perl5.8.0/lib/CGI.html#FETCHING-THE-NAMES-OF-A

Re: param help!

2004-08-14 Thread Owen
ot get thru. > > The form is located at: http://www.kevincoffey.com/order.htm > > When I select a different shipping adrress, it shows not work! > > Can someone plshelp me? You are saying with this line if ($query -> param ("Shipping_Preference") == "TRUE&quo

param help!

2004-08-14 Thread Shillong Dotcom
adrress, it shows not work! Can someone plshelp me? Regards Babul And the first perl file is: ===form1.pl=== #!/usr/bin/perl use CGI; use CGI::Carp qw(fatalsToBrowser); use strict; my ($query, @params, $param, $paramVal); my ($csTravel); my (@allProductQuantities); my (@productIDs, $ID); my

Re: How to tell if subroutine param is filehandle

2004-02-01 Thread Jeff 'japhy' Pinyan
On Feb 1, [EMAIL PROTECTED] said: >Is there a way for a subroutine to tell when it got passed a FILEHANDLE? You could test to see if its ref() returns "GLOB" or "IO::File" or "IO::Handle", etc., but I think it's a nifty idea to do: if (defined fileno($arg)) { # it's an open filehandle }

How to tell if subroutine param is filehandle

2004-02-01 Thread mcdavis941
Hi, Is there a way for a subroutine to tell when it got passed a FILEHANDLE? Running a quick test suggests a way, which is to check the first char of the result of interpolating the subroutine param as a string. Can anyone say whether this is robust and if not what might be a better approach

Re: CGI::Session param help

2003-10-24 Thread perl
gt;Can someone tell me how to delete a parameter in $session->param("BOGUS") >>that was set? > > $session->delete("BOGUS"); > > Read 'perldoc CGI' for more details. > > -- > Jeff "japhy" Pinyan [EMAIL PROTECTED]

CGI:Session param dbh

2003-10-24 Thread perl
If I store a dbh in a session as in, $session->param("DB",$dbh), what happen when the session expire due to expire setting? Will the dbh still be in memory or cleaned up? -thanks - eMail solutions by http://www.swanmail.com -- To unsubs

Re: CGI::Session param help

2003-10-24 Thread Jeff 'japhy' Pinyan
On Oct 24, [EMAIL PROTECTED] said: >Can someone tell me how to delete a parameter in $session->param("BOGUS") >that was set? $session->delete("BOGUS"); Read 'perldoc CGI' for more details. -- Jeff "japhy" Pinyan [EMAIL PROTECTED]

CGI::Session param help

2003-10-24 Thread perl
Can someone tell me how to delete a parameter in $session->param("BOGUS") that was set? $session->param("BOGUS", "hello"); Does this actually removes or just set a null value? $session->("BOGUS", undef); I

Conditional statement and param()

2003-09-01 Thread B. Fongo
Hello Below is a portion of a script that displays a table. The argument passed by param() determines the number of rows the table should display. For some unknown reason, the value of param() seem to behave strangely. It at times the value does not change; even if a different number is sent

CHOMP and {$query->param( question...

2003-06-23 Thread Gregg O'Donnell
how do I get it into {$query->param( (see ) so I can associate it with the email address? Many thanks, Gregg ## # Assigned variables (left of =) fr

RE: CGI.pm param

2002-12-20 Thread Dan Muey
Actually the form has several checkboxes with the same name. I figured it out though. The script went through all params in a loop in scalar context so that made that param a single value. SO the correct format I found to be @array $cgi->param('checkbox'); The above does get

Re: CGI.pm param

2002-12-20 Thread Rob Dixon
l then return a list of only the _checked_ boxes when $cgi->param ('groupname') is called. HTH, Rob "Dan Muey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I'm starting to use CGI.pm to parse

CGI.pm param

2002-12-20 Thread Dan Muey
Hello, I'm starting to use CGI.pm to parse input instead of cgi_lib.lib What I need to do is get the values of a series of checkboxes into an array so I can do foreach over them . EXAMPLE : @check_box_entries = $cgi->param('checkboxname'); $check_box_entries = $cgi-&g

RE: Hash, query->param help

2002-08-14 Thread Hanson, Rob
Are you looking for something like this? # UNTESTED! my $county = $query->param('County'); if ( ! $county ) { # no county was passed. # display error page to the user, or ignore the request. } elsif ( ! exists($counties{$county}) ) { # they sent a county, but we have n

RE: Hash, query->param help

2002-08-14 Thread Gregg O'Donnell
If the user doesn't select a county in the first place, $query->param('County') will be undefined, which means that $counties{$query->param('County')}->{County} will be an error. So I think I need some code to handle this using something like if($query

RE: Hash, query->param help

2002-08-14 Thread Hanson, Rob
> ...only the categories for which they have a value This is probably the easiest way. # this will set the value to '' if the key doesn't exist my $email_county = $counties{$query->param('County')}->{County} || ''; > And how do I wrap this s

Hash, query->param help

2002-08-14 Thread Gregg O'Donnell
ED]', Abbrev => 'ALB', }, Alleghany => { Region => '[EMAIL PROTECTED]', County => '[EMAIL PROTECTED]', Abbrev => 'ALL', ); # Selected County: return EMAIL ADDRESS my $email_county = $counties{$query->param('County')}->{Coun

Re: grab another param from url

2002-08-02 Thread Jenda Krynicky
From: "Larry Steinberg" <[EMAIL PROTECTED]> > I have a subroutine that grabs a parameter (city) from the url for use > in the script (which produces a report with the value of that > parameter). I now want to grab another parameter (state) and append it > to the previous and have it also appear in

RE: grab another param from url

2002-08-02 Thread Barry Veinotte
> -Original Message- > From: Larry Steinberg [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 02, 2002 11:38 AM > To: [EMAIL PROTECTED] > Subject: grab another param from url > > > Hi, > > I have a subroutine that grabs a parameter (city) from the url

grab another param from url

2002-08-02 Thread Larry Steinberg
Hi, I have a subroutine that grabs a parameter (city) from the url for use in the script (which produces a report with the value of that parameter). I now want to grab another parameter (state) and append it to the previous and have it also appear in the report. Preferably it would look like this

RE: Re[2]: param function

2002-03-17 Thread Gary Hawkins
nk.com"; > my $username = "my_secret_username"; > my $password = "my_password"; > for $name (param()) { > $$name = param($name); > } > > my $result = get("https://$credit_card_server/refund.pl?";. >"username=$us

Re[2]: param function

2002-03-16 Thread Daniel Gardner
Saturday, March 16, 2002, 9:58:15 AM, Gary Hawkins wrote: > 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 $

Re[2]: param function

2002-03-16 Thread Daniel Gardner
Saturday, March 16, 2002, 12:42:40 AM, Tiller, Jason wrote: > 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 param

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

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 paramete

Re: param function

2002-03-15 Thread Tanton Gibbs
form( e.g. @R::name ). Otherwise, you should use the scalar form (e.g. $R::name). If no namespace is given, the function will use 'Q'. Good luck! Tanton - Original Message - From: "Mariusz" <[EMAIL PROTECTED]> To: "perl" <[EMAIL PROTECTED]> Sent: Friday,

param function

2002-03-15 Thread Mariusz
hi, I have a html form with over 100 fields, is there a quick way to assign them in the way that the scalar name becomes the name of the field and the value of the field is being assigned to that scalar? I know I can just type it one by one: $name = param('name'); $lastname = param

Moving CGI 'param' data into a writable hash [was:: What's wrong with this?]

2002-01-31 Thread Gary Hawkins
> using the Perl4 cgi-lib.pl. However, I can think of no other > legitimate use. Here's a nice, > clean method of dealing with this: > > use strict; > use CGI qw/:standard/; > my %form_data = map { $_, get_data($_) } param; > > sub get_data >

Still problems with bind param

2001-09-20 Thread Lothar Behrens
Hello, I searched the internet for any solution about binding parameters to the SQL statement. I read something, that in WIN32ODBC, binding parameters is not supported. I have the following environment: W2K TS, Activestate Perl, WIN32ODBC driver. I use this statements: $sql = "insert into $ta

Re: size of textarea linked to param?

2001-05-28 Thread Me
> when I push the submit button to process the data inside the textarea > nothing happen if the textarea has a size > 1.6K > > Any suggestion? Use method=put rather than method=get. The latter often truncates the total form data to around 2k. If this doesn't help, you should probably head over

size of textarea linked to param?

2001-05-28 Thread P lerenard
Hi, I use HTML and PERL together. I have param which is a textarea value, but even if the size accepted by the textarea should be 32K, the form don't accept it. when I push the submit button to process the data inside the textarea nothing happen if the textarea has a size > 1.6K Any su