I have been trying to generate a page based on the code fragment below. But
when the page appears I get the scrolling_list on the page, but the value
inside the list is \@contacts.
I must be doing something wrong because the docs say I can pass an array
reference as I am doing.
Can anyone point
Hi,
I guess the assignment have not been made correctly because of the single quotes. My
guess
would be this line:
my $contact_list = $q-scrolling_list(-name='contacts',
-values=\@contacts,
-multiple='true');
Kind
Try replacing
-values='\@contacts'
with -values=$contacts.
yet another reason to get into the habit of 'use strict';
--
Mark Koopman WebSideStory San Diego CA 92121
.
perl -e 'print chr
Or, you can add them into your runtime template:
tmpl_include name='header.tmpl'
!--begin logon--
...runtime template for a logon ...
!--end logon--
tmpl_include name='footer.tmpl'
From: tomasz konefal [EMAIL PROTECTED]
Date: Thu, 30 May 2002 14:26:17 -0400
To: [EMAIL PROTECTED]
Greetings all,
I am relatively new to CGI::Application, although I'm not
new to Perl and to CGI scripts in general. I am curious
if there is a style guide or a recommened method for
implementing actions whose user-supplied input can possibly
change the run method
For example, a common issue
my $arrayref = $dbh-selectcol_arrayref(qq|
SELECT monitor_contact WHERE mc_id=?|,
undef, $account_id);
print $cgi-scrolling_list(-name=contacts,
-values=$arrayref,
-multiple = 1);
On
Incase anyone else has this problem. Here is something that worked for me,
not sure if it's the best way to do it but it's working.
my $select_contacts_query = SELECT contact_email FROM monitor_contact WHERE
mc_id = $account_id;
my $sth = $dbh-prepare($select_contacts_query);