Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-10-2012, 12:39 PM #1
- Join Date
- Nov 2010
- Thanked 0 Times in 0 Posts
Dynamically Add Rows To Table - PHP Posting
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!!
10-10-2012, 03:07 PM #2
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.