How to save multipple div values with the content editable feature with the same name in database using php.

The user can click the div element as many times as he/she wants and can enter the values in the text boxes(that is a small div boxes). Once the user clicks the submit button, all the values that he/she entered should be saved in the database.

I have written code like this to display the box and was working fine.$board.append('<div class="class1" style="left:20px;top:70px"><div contenteditable class="editable" name = "content[]"></div></div>');

and the next code with be with a different class outside but the same name inside.