hi all
i trying createan array form variables dynamically.
hence below code. strangely, workable code is
$f->addattribute("name", "cell1][var1]");
for me retrive contents via $data[cell1][var1]
well, works, weird, "cell1][var1]" part.
i afraid run other troubles?
should there proper way this?
any great!
thanks
ken
<?php
$f = new jxmlelement ('<field/>');
$f->addattribute("name", "cell1][var1]");
$f->addattribute ('type', 'text');
$f->addattribute ('size', '7');
$this->form->setfield($f,null,true);
echo $this->form->getinput("cell1][var1]");
?>
i trying createan array form variables dynamically.
hence below code. strangely, workable code is
$f->addattribute("name", "cell1][var1]");
for me retrive contents via $data[cell1][var1]
well, works, weird, "cell1][var1]" part.
i afraid run other troubles?
should there proper way this?
any great!
thanks
ken
<?php
$f = new jxmlelement ('<field/>');
$f->addattribute("name", "cell1][var1]");
$f->addattribute ('type', 'text');
$f->addattribute ('size', '7');
$this->form->setfield($f,null,true);
echo $this->form->getinput("cell1][var1]");
?>
Comments
Post a Comment