submited data on $_POST, but not in $params

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
kazkas

submited data on $_POST, but not in $params

Post by kazkas »

I made a form in admin area, like I did about 100 times, but this time there's something wrong. print_r after submiting form:
$params:
Array
(
    [action] => defaultadmin
)
$_POST:
Array
(
    [mact] => Business,136,defaultadmin,0
    [136l1] =>
    [136l2] =>
    [136id1] => 136
    [136adtype] => B
    [136name] => Test21
    [136phone] => 01952 xxxxxx or 0195
    [136select1] => 56
    [136until] => 27/05/2007
    [136submit3] => Submit Edited Ad
)

Maybe someone knows where the problem is?
Sonya

Re: submited data on $_POST, but not in $params

Post by Sonya »

Hello,

you have to use $smarty->params instead of $params.

sonya
Post Reply

Return to “Developers Discussion”