why not extract($_POST); and use your old code or somthing like that, same thing really if code don't work