JmZ's example using jQuery is probably the best route you can take - it makes everything easier.
Also instead of using the ID's of your input fields, place an ID on each of the td tags the inputs are in, then use the same code. For IE6 however you may have to put a conditional statement in...
If that's the entire code you're using, the array you're using is null; in your insert statement, you're missing the column name declarations before the values list; you're placing the mysql_close() function within your foreach() loop so after the first run, it would close your SQL connection...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.