Page 1 of 1

Params and special chars in variables

Posted: Thu Sep 23, 2010 4:23 pm
by piwko28
Hi. I'm working on the admin panel placed on the webside.
Standard CMSMS form..:

Code: Select all

$this->smarty->assign('startform', $this->CreateFormStart($id, 'example_action', $returnid, 'post', 'multipart/form-data'));
and some inputs, simplest:

Code: Select all

$smarty->assign('example', $this->CreateInputText($id, 'example', $params['example'], 40, 200));
I'm trying to send something like this:
(just brackets)
Unfortunately, var_dump from $params['example'] prints: <>
But var_dump from $_POST['cntnt01example'] prints brackets correctly.
Similar action on standard admin panel works fine. Why it has happend?

Re: Params and special chars in variables

Posted: Thu Sep 23, 2010 6:20 pm
by NaN
Use html_entity_decode($params['example']).

Re: Params and special chars in variables

Posted: Thu Sep 23, 2010 6:58 pm
by piwko28
Works, thanks :)
But why it make a difference I work on admin panel or not?