New ITX (HTML_Template_ITX) user needs help!

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm just getting started with ITX and am having problems with variables
containing $ and numbers.

The relevant portion of the tpl file is:

<form method="POST">
<input type="submit" value="Submit" name="Sites">
<!-- BEGIN SITES -->
<input type='checkbox' name='' value='ON'><br>
<!-- END SITES -->

The relevant portion of the php setting the variables is:

foreach($x as $k=>$v){
$tpl->setVariable('URL1',str_replace(' ','',$v));

The values being set include:

Fast $3B Bank
Fast Internet Only Bank

What I'm getting for output is:

<input type='checkbox' name='FastBBank' value='ON'>'Fast B Bank'<br>
<input type='checkbox' name='FastInternetOnlyBank' value='ON'>'Fast
Internet Only Bank'<br>

What's happening to the $3?

Re: New ITX (HTML_Template_ITX) user needs help!

It turns out that $ is special within values in ITX and must be
escaped with '\'.

Quoted text here. Click to load it

Site Timeline