Grow your CSS skills. Land your dream job.

how to create dynamic text boxes in php

  • # June 4, 2012 at 11:23 pm

    hi all

    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

    __
    # June 5, 2012 at 1:11 am

    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.

    # June 5, 2012 at 8:18 am

    thanx traq could you help me in this i tried but i confused !

    __
    # June 5, 2012 at 11:17 am

    for example, if you’re using the jQuery library, you might do something like this.

    Once the form is submitted, all of the textareas will be available to your PHP script as an array.

    # June 23, 2012 at 12:18 pm

    yes this is what i need thank you ,
    but how to get all the values from this form and insert it to mysql database

    # June 23, 2012 at 3:55 pm

    seems familiar right?

    try to print_r($_POST) , you will get a set of array to process

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".