|
|
#1 |
|
Join Date: Sep 2008
Posts: 1
![]() |
Hi!!
I've made a form with a selectlist. It looks like working correctly but when I submit the content, the column ID is alway '0'... I can not write the id from the item selected on the list. Here the code: <?php $estacion = ff_getParam('ff_param_estacion', 0); $rows = ff_select( "select id, estacion from #__metro " ); $flag = 0; $list = ''; if (!is_null($rows)) foreach ($rows as $row) if ($row->id==$estacion) { $flag = 1; $list .= "1;$row->estacion;$row->id\r\n"; } else $list .= "0;$row->estacion;$row->id\r\n"; if ($flag) return $list; return "1;Selecciona la estacion;''\r\n".$list; ?> The #_metro's structur: id, estacion - I'm sur it's nothing but I can not see the problem. Can you help me?? Many thanks |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|