Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2010
    Thanked 0 Times in 0 Posts

    Dynamically Add Rows To Table - PHP Posting

    Hi folks,

    I've created my form with the functionality included to dynamically add rows to a table using a script as posted within another thread here.

    However when I click 'Submit' in the form page it's supposed to load the form submit PHP page (with validation parser) to post the values to the server and send as an email. This doesn't happen, instead, clicking Submit loads a blank (white) page with no content.

    Can anyone advise why? Thanks!!

  2. #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Thanked 665 Times in 660 Posts
    if you are using the code from post 17 in that thread you should have a look at it in IE. IE8 (and below, at least) cannot make nested table elements using innerHTML - you would be better to use document.createElement("td") - you can then manipulate the innerHTML of the td as there are no more nested elements. You can also append an incrementing variable (like your newno) directly to the newly created rows, rather than use the replace workaround (see my post here for an example).

    If you ended up going with jQuery's clone() that's probably all different. Maybe you should post the latest version of your code?
    Last edited by xelawho; 10-10-2012 at 03:30 PM.


Posting Permissions

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