Variables with dots in templates
| From: | Valerio Santinelli | Date: | Mon, 06 Sep 2004 15:35:37 +0000 |
| Subject: | Variables with dots in templates | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11768@lists.php.net to get a copy of this message | ||
I guess I stumbled on a problem I cannot solve by myself.
In my HTML template I have a form with check boxes like:
<input name="cb_src[]" type="checkbox" class="ricerca"
id="cb_src[]"
value="utenti_servizi.tipo_abbonamento" {if
(isset($cb_src.utenti_servizi.tipo_abbonamento))}checked{/if}>
My problem is that $cb_src.utenti_servizi.tipo_abbonamento is never going to
be set because the real variable in php is
$cb_src['utenti_servizi.tipo_abbonamento']
I gues that having a dot in a key of an array makes a problem for Smarty
unless there's some other way to overcome the problem.
Is there anybody who can help me?
Valerio Santinelli