www.webdeveloper.com
Results 1 to 4 of 4

Thread: Making a dynamic table from HTML form

  1. #1
    Join Date
    Jan 2014
    Posts
    2

    Making a dynamic table from HTML form

    I am trying to create a website that will display a table based on input from an HTML form. My website has a MySQL database set up already and I am able to populate and display the table using MySQL and PHP when I hard code the query into PHP.

    I'm trying to find information on how to create a webpage that will query a table based on a users search parameters without calling a new page. Is there a way to create/display a table on the same page as the HTML form? I want the user to be able to perform a search/query and have the results appear below the form in a table. Then, if they perform another search or change the parameters of the previous search, I want the same table to destroy and recreate itself below the form again.

    The table is going to be accessing static data from a MySQL database. The information in the database will never change or be updated (the data are historical results from a sports league).

    I already have HTML, MySQL, JavaScript and PHP built into the page, so I am a little familiar with all of them. How do I use HTML, PHP, JavaScript and MySQL to destroy and create new tables based on an HTML form without creating a new window for every search?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,536
    If I'm correctly understanding the question, you're probably looking at a JavaScript AJAX solution, possibly using something like the jQuery JavaScript framework to help implement it.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Jan 2014
    Posts
    2
    Quote Originally Posted by NogDog View Post
    If I'm correctly understanding the question, you're probably looking at a JavaScript AJAX solution, possibly using something like the jQuery JavaScript framework to help implement it.
    OK, thanks. I never knew what AJAX was. I just looked it up and it says...

    "AJAX is the art of exchanging data with a server, and updating parts of a web page - without reloading the whole page."

    This sounds exactly what I want. Thanks!

    Now off to learn AJAX.

  4. #4
    Join Date
    Jan 2014
    Location
    United States
    Posts
    2
    I am trying to create a HTML table like the following dynamically using here label is coming properly and the input box is not coming and it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles