perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Bodnar" <ja...@shakabuku.org>
Subject auto-selecting OPTION not working
Date Mon, 20 May 2002 22:18:37 GMT
I have a <SELECT> list in my page but Embperl is not setting the default based
on form data. Here's the code:

[- use constant CATEGORIES => ['Print', 'Collateral', 'Broadcast'] -]
<TD><B>Category:</B></TD>
<TD>
 [- $fdat{category} = $data->{$fdat{item}}->{category} -]
 [+ $fdat{category} +]<P>
 <SELECT NAME="category">
  [$ foreach $category (@{CATEGORIES()}) $]
   <OPTION VALUE="[+ $category +]"> [+ $category +]
  [$ endforeach $]
 </SELECT>
</TD>

The [+ $fdat{category} +]<P> results in:

Collateral<P>

and Collateral is in the SELECT list.

In my conf file I have:

PerlSetEnv EMBPERL_OPTIONS 2064

I tried setting it to 16 as well.

--
Jason Bodnar
jason@shakabuku.org
http://www.shakabuku.org


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message