Within php: context you should use "option[0]" instead to get the
first element of the option array

On 10/22/09, Kornel Lesiński <kor...@aardvarkmedia.co.uk> wrote:
> On 22-10-2009 at 14:09:42 Michael <hosema...@poczta.onet.pl> wrote:
>
>> One more thing:
>> My select statement:
>> <select name="id_country" id="id_country">
>> <tal:block tal:repeat="option id_country_arr">
>> <option tal:attributes="selected php:isset(id_country_val) AND
>> (id_country_val
>> == option/0)" value="${option/0}">${option/1}</option>
>> </tal:block>
>> </select>
>>
>> I have a problem with this statement:
>> (id_country_val == option/0)
>> it seems that phptal don't get the value of option/0
>
> When you use php: modifier, all TALES stops working. With php: modifier
> option/0 means divide option by zero.
>
>
> --
> regards, Kornel
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>


-- 
--
Tjerk

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to