Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Robo] "select box" mystery

Quote Reply
Re: [Robo] "select box" mystery In reply to
Hi,

Try this as a global (Thanks Paul for finishing this one for me also):

Code:
sub {
my $return = q|<select name="Foo">|;
my @list = $DB->table('Countries')->select->fetchall_list;

$return .= map { q|<option>$_</option>| } @list;
$return .= q|</select>|;
return $return;
}


If you have not made a global before.... let me know.

Basically you have to give this global a name when you enter it, say select_country... then the tag you would place would be <%select_global%>.


http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

Ian: Jul 18, 2002, 11:26 AM
Subject Author Views Date
Thread "select box" mystery Robo 7573 Jul 18, 2002, 7:26 AM
Thread Re: [Robo] "select box" mystery
Ian 7238 Jul 18, 2002, 11:24 AM
Thread Re: [Ian] "select box" mystery
Robo 7174 Jul 19, 2002, 12:57 AM
Thread Re: [Robo] "select box" mystery
Aki 7210 Jul 19, 2002, 1:09 AM
Post Re: [Aki] "select box" mystery
Robo 7149 Jul 19, 2002, 1:44 AM
Thread Post deleted by Robo
Robo 7161 Jul 19, 2002, 1:09 AM
Thread Re: [Robo] "select box" mystery
Ian 7211 Jul 19, 2002, 1:13 AM
Thread Re: [Ian] "select box" mystery
Robo 7180 Jul 19, 2002, 1:47 AM
Thread Re: [Robo] "select box" mystery
Paul 7218 Jul 19, 2002, 2:04 AM
Thread Re: [Paul] "select box" mystery
Robo 7174 Jul 19, 2002, 2:43 AM
Thread Re: [Robo] "select box" mystery
Robo 7151 Jul 19, 2002, 2:51 AM
Thread Re: [Robo] "select box" mystery
Robo 7168 Jul 19, 2002, 6:02 AM
Thread Re: [Robo] "select box" mystery
yogi 7151 Jul 19, 2002, 6:20 AM
Thread Re: [yogi] "select box" mystery
Robo 7124 Jul 19, 2002, 7:51 AM
Thread Re: [Robo] "select box" mystery
Aki 7119 Jul 19, 2002, 10:56 AM
Thread Re: [Aki] "select box" mystery
Robo 7131 Jul 20, 2002, 12:11 AM
Thread Re: [Robo] "select box" mystery
Aki 7144 Jul 20, 2002, 7:25 AM
Thread Re: [Aki] "select box" mystery
Robo 7104 Jul 20, 2002, 8:41 AM
Thread Re: [Robo] "select box" mystery
Aki 7131 Jul 20, 2002, 9:27 AM
Post Re: [Aki] "select box" mystery
Robo 7143 Jul 20, 2002, 10:18 AM