# How to add text fields to form dynamicly and send to database

**URL:** <https://forum.kirupa.com/t/how-to-add-text-fields-to-form-dynamicly-and-send-to-database/311215>\
**Category:** Uncategorized\
**Created:** [June 30, 2010, 10:29am UTC](https://forum.kirupa.com/t/how-to-add-text-fields-to-form-dynamicly-and-send-to-database/311215 "2010-06-30T10:29:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alapimba](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@alapimba](https://forum.kirupa.com/u/alapimba)\
**Post date:** [June 30, 2010, 10:29am UTC](https://forum.kirupa.com/t/how-to-add-text-fields-to-form-dynamicly-and-send-to-database/311215/1 "2010-06-30T10:29:11Z")

</div>

Hi.

I need to fo a form and the content be sent to a database but i’m stuck…  
I knwo hot to do forms and also how to send data to mysql using php.

But now i need something a bit more complex and i’m stuck.

I need to make a form lets say with “parent name, age, child name, child age”  
Some people has 1 child some people has 2 3 4…and i need to have it separated and not just write like “joe, bob, jack” in the same line.  
How can i do this?

And how should the database be structured? i can’t put “id, parent, age, c\_name, c\_age” because some ppl will need to have more than 1 child in the database.

Don’t know what to do ☹
