I also have another problem.
This works in 1.3.3
$Contacts is an array ref to hash refs (DB output)
[* foreach my $row (@$Contacts) { *]
<tr>
<td>
<a href="">[* print OUT $row->{'Company'} ; *]</a>
</td>
<td>
[*
print OUT $row->{'LastName'} ;
if ($row->{'FirstName'} and $row->{'LastName'}) {
print OUT ', ' ;
}
print OUT $row->{'FirstName'} ;
*]
</td>
<td>[* print OUT $row->{'Phone'} ; *]</td>
<td>[* print OUT $row->{'Email'} ; *]</td>
</tr>
[* } *]
Output:
<tr>
<td>ABC Corp</td>
<td>Smith, John</td>
<td>Phone</td>
<td>Email</td>
</tr>
<tr>
<td>XYZ Corp</td>
<td>Doe, John</td>
<td>Phone</td>
<td>Email</td>
</tr>
However, in 2.0b3 I get the output repeated like this (same number of lines though
<tr>
<td>ABC CorpXYZ Corp</td>
<td>Smith, JohnDoe, John</td>
<td>PhonePhone</td>
<td>EmailEmail</td>
</tr>
<tr>
<td>ABC CorpXYZ Corp</td>
<td>Smith, JohnDoe, John</td>
<td>PhonePhone</td>
<td>EmailEmail</td>
</tr>
In both cases, EMBPERL_OPTIONS are set to 262160.
I switched to 2.0b3 for testing because in 1.3.3 a combination of auto fill of the
input/select boxes + [* *] doesn't work right (I see the [* *] in the value="" boxes,
among other things but I know [* *] is experimental in 1.3 tree)
Bill "Elvis" Gibbs
goEbusiness.com - putting e-motion in your business
email - [EMAIL PROTECTED] work - 301-668-5090 cell - 301-748-6938
On Sat, 4 Aug 2001, Elvis wrote:
> I can't get Embperl to "select" a dropdown list option if I import the options via
>Execute.
>
>
> ---- test.html ----
>
> [- $dbgInput = 1 -]
>
>
> <form>
> <select name="Example">
> <option value="1">One</option>
> <option value="2">Two</option>
> <option value="3">Three</option>
> </select>
> </form>
>
>
> <form>
> <select name="Example2">
> [- Execute('options.html') ; -]
> </select>
> </form>
>
>
> --- options.html (the included file ---
>
> options.html:
> <option value="1">One</option>
> <option value="2">Two</option>
> <option value="3">Three</option>
>
>
> The problem is that in Example2, the option is not selected.
>
> If I can test.html?Example=2&Example2=2 then the first form "option 2" is selected.
>However, there is no processing on Example2.
>
> /tmp/embperl.log shows the selection of Example but there is nothing about Example2
>in there...which leads me to suspect that the processing doesn't occur when you
>"import" the option list via an Execute statement.
>
> Bill "Elvis" Gibbs
> goEbusiness.com - putting e-motion in your business
> email - [EMAIL PROTECTED] work - 301-668-5090 cell - 301-748-6938
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]