[cgiapp] help with scrolling_list and htmltmpl from cgiapp

2002-05-30 Thread Zachary Buckholz
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

Re: [cgiapp] help with scrolling_list and htmltmpl from cgiapp

2002-05-30 Thread Gerard ter Haar
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

Re: [cgiapp] help with scrolling_list and htmltmpl from cgiapp

2002-05-30 Thread Mark Koopman
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

Re: [cgiapp] loading templates in setup?

2002-05-30 Thread Eric Moore
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]

[cgiapp] coding strategy

2002-05-30 Thread John Coy
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

Re: [cgiapp] IS there an example anyone can share ?Re: [cgiapp] helpwith scrolling_list and htmltmpl from cgiapp

2002-05-30 Thread Sherzod B. Ruzmetov
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

[cgiapp] Figured it out - Re: help with scrolling_list and htmltmpl from cgiapp

2002-05-30 Thread Zachary Buckholz
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);