if in a form I have a field called {name}, I can change the value with {name} = “MyName”;
well if I wrote $name = “MyNewName”; I change the field and not a local variable $name, so I suggest to change the internal name of fields as f_fieldname, so
$name is a local variable
{name} became $this->f_name and they are different.
Thank you