I have a form which adds some 5 fields(name,age,occupation..etc) dynamically on click add button...
how to write a insert statement for it

Child name:<input type="text" name="name">
Child Occupation:<input type="text" name="occupation">

Do you mean how to add the input fields to the form dynamically or do you mean how to write a insert query when some of the fields are not always there?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.