486 users online (0 members and 486 guests)  

  Results 1 to 2 of 2


  1. form data displayed on html page    Forum: PHP Forum
    Replies: 1
  2. Random pictures in each table data cell    Forum: HTML Forum
    Replies: 0
  3. html form data output    Forum: HTML Forum
    Replies: 1
  4. Get data in same HTML page    Forum: HTML Forum
    Replies: 1
  5. Replies: 8
  1. #1
    neomn's Avatar
    New User

    Join Date
    Aug 2010

    PHP code for selecting data from html table

    Dear All

    I would like to develop a php program. The program will like there will be several html text box in a html form. Bellow the text box there will be a simple button name ADD. After filling the text box when I press the add button all the data will be stored in tabular format bellow the ADD button. Each time I press the ADD button a new table row will be appended containing the text box data. Finally there will be a Submit Button after the table. When I press the submit button all code containing in table will be saved into the database. All this I would like to do using PHP or PHP and Javascript in combine and nothing else. Now I would like to request you all to help me to have a solution of the problem.

    Thanks to you all.

  2. #2
    xmassey's Avatar
    Senior Member

    Join Date
    Apr 2007

    Re: PHP code for selecting data from html table


    The dynamic adding of data to a table could be done entirely in javascript, then use PHP as your action to retrieve posted data and append to the database.

    However, I would personally prefer to use a session, which has the ability to hold a hash. Read the hash from the session at the beginning of the script, make any changes to it, or destroy the session and submit the data, then write the hash to the session at the end of the script.