Dinamically adding form field to a form

Dinamically adding form field to a form

Hi all,

I know that the subject of this message is very common, but what I would get is this:


in my database I have this table
  1. CREATE TABLE parameters (
  2.  parameters_id serial,
  3.  object_id INTEGER NOT NULL DEFAULT 0,
  4.  label VARCHAR (50) NOT NULL DEFAULT '',
  5.  value VARCHAR (50) NOT NULL DEFAULT ''
  6. );

object_id is related to another table with value: car

  1. INSERT INTO parameters (1, 'color', 'red');
  2. INSERT INTO parameters (1, 'wheels', '5');
  3. INSERT INTO parameters (1, 'speed', 'fast');



I need to create a form that allows me to add fields on the fly based on how many fields I need and then save them in the table as if they were respectively the label and value.


Example
Label: color, Value: red


In your opinion, what is the best way or plugin to do this?
Any help, links, suggestions, plugins or anything else that may help is welcome.