Help - Search - Members - Calendar
Full Version: how dynamically add rows to html table?
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
alibobs
A client wants me to create a basic html form w. a button to dynamically add rows to the table as needed. I'd like the button to add 5 rows for each click of the button. How do I do this in PHP?
Christian J
Since PHP is a server-side language the user must submit the form, so that a new page with the additional rows is created. One way might be to use two submit buttons (with different names), and let the PHP script do different things depending on which one was clicked.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.