when i click add button it's create new textbox when i finish adding what ever number of textboxes i get the value of them and insert them into database
PHP runs on the server. Functionality like this is something that happens while a visitor is using the webpage; i.e., on their own computer. PHP is over and done with at that point. You should look at a javascript solution.
how to create dynamic text boxes in php
when i click add button it's create new textbox when i finish adding what ever number of textboxes i get the value of them and insert them into database
Once the form is submitted, all of the textareas will be available to your PHP script as an array.
but how to get all the values from this form and insert it to mysql database
seems familiar right?
try to
print_r($_POST['textbox']), you will get a set of array to process