Categories > TinyButStrong general >

How can I do that?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Chienp
Date: 2009-11-04
Time: 11:42

How can I do that?

I want display value below:
<input type="hidden" value="99" name="daynum[99]"/>

My template:
<input type="hidden" value="[dayweek.daynum;noerr;]" name="daynum[[dayweek.$;noerr]]"/>

But it all way convert to:

<input type="hidden" value="99" name="daynum&#91;99]"/>

Please help me, thanks
By: Skrol29
Date: 2009-11-04
Time: 12:53

Re: How can I do that?

Hi Chienp,

It seems that your HTML editor has converted the first '[' into '&#91;' which is its HTML encoding. Check your template to see if name="daynum[[dayweek.$;noerr]]" is not in fact  coded name="daynum&#91;[dayweek.$;noerr]]"

If it is not, it means that this fist '[' comes from a TBS injection. But your snippet doesn't say that.
By: Chienp
Date: 2009-11-05
Time: 04:33

Re: How can I do that?

Hi Skrol29,

Thanks for you reply. I think it convert by TBS, I'm still trying to where the problem is.
By: Chienp
Date: 2009-11-05
Time: 09:23

Re: How can I do that?

I've found a problem here. Hope usefully for somebody
If I use: $view->Show ( true );
then html display like that
<input type="hidden" value="99" name="daynum&#91;99]"/>

If I use: $view->Show ();
<input type="hidden" value="99" name="daynum[99]"/>