[eluser]Aspi[/eluser]
Thanks everybody reply
public function index($formname,$form_pkey,$ID,$method)
{
$data = array();
foreach($_POST as $key => $value){
if(!ereg("new",$key,$tomb)){
$key = preg_replace("(\d+)",'',$key);
$data[$key] = $value; ==> this is the right answer
}}
if($method == "update")
$this->update($formname,$form_pkey,$ID,$data);
}
if replace $_POST to $this->...->post is ok?