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
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
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
-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
-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
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
##
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
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,
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
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
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
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);
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
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.
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
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
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
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
}
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
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]
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
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]
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
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
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
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
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
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
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
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
> ...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
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
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
> -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
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
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
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 $
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
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
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
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,
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
> 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
>
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
> 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
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
46 matches
Mail list logo