hello I've got a problem here i manage to do a code where i displays the rows of a table then i'd put them in an textbox so user can edit it. i manage to get the code where you update all the rows once a button is pressed but the problem is when a text with a space is inputted the row is not updated.
here the view code <?php foreach($this->table as $tables) : ?> <tr> <input type="hidden" name="row[<?= $this->escape($tables->id)?>][id]" value="<?=$this->escape($tables->id);?>" /> <td><input type="text" name="row[<?= $this->escape($tables->id)?>][editid]" value="<?=$this->escape($tables->id);?>" size="3" /></td> <td><input type="text" name="row[<?= $this->escape($tables->id)?>][value]" value="<?=$this->escape($tables->value);?>" /></td> <td><input type="text" name="row[<?= $this->escape($tables->id)?>][wt]" value="<?=$this->escape($tables->wt);?>" size="5"/></td> <td> <? if($this->viewAccess('deletecategory','')){?> <input type="button" name="Submit" value="Delete" onClick="window.location.href='<?=$this->url(array( 'controller' => 'admin', 'action' => 'crdelete', 'id' => $this->escape($tables->id)));?>'"/> <? } ?> </td> </tr> <?php endforeach; ?> <tr> <td colspan="3" align="center"> <? if($this->viewAccess('editcategory','')){?> <input type="submit" value="Update" name="button"/> <? } ?> then here's my controller action code if ($button == 'Update') { foreach ($this->_request->getPost('row') as $id => $row) { $string = " \$curr_model->updateSelect_{$table}($row[id],$row[editid],$row[value],$row[wt]);"; eval($string); } $this->_redirect('/admin/crview/crit/'.$table); } -- View this message in context: http://www.nabble.com/Field-not-updating-when-textbox-have-space-tp24072465p24072465.html Sent from the Zend Framework mailing list archive at Nabble.com.