You are here: Re: [SMARTY] Repost... « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] Repost...

Posted by Monte Ohrt on 01/03/05 21:46

Does {html_options} not work for you?

Rob Adams wrote:

>I posted this before, and maybe I wasn't clear on the problem. It sounds
>clear to me, but I'm dealing with it, so I already understand it. Can
>anyone help me? Or do you need more information? Thanks.
>
>
>
>I have a situation where I need to display a variable number of shipping
>address forms, depending on user input. Since there is no built in for or
>while loop, I used {php}tags to setup a loop through the address forms.
>
>Everything is working great, except one part:
>{select name=sstate test=$ship.$addrcnt.state}
>
>
>This is a custom function I've made, to help put the text 'selected' in the
>right spot on select/option fields. Anyway, you can see what I'm trying to
>do here, but it obviously doesn't work. Is there any way I can make this
>work?
>Below is the line in context:
>
> <select name="ship[{$addrcnt}][state]"
>class="listbox" >
> <option value=""> Select State </option>
>{select name=sstate test=$ship.$addrcnt.state}
>{foreach from=$states item=state}
> <option value="{$state->code}" {select name=sstate
>value=$state->code}>{$state->state}</option>
>{/foreach}
> </select>
>
>Thanks for any help.
>
> -- Rob
>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация