Connecting Tech Pros Worldwide Help | Site Map

How to update the access database with the HTML table data

Newbie
 
Join Date: Jun 2007
Location: Tamilnadu
Posts: 29
#1: Oct 10 '09
Hi All,

Good Morning!

My requirement is as below:

I am having a HTML table and the text boxes are embedded as a row of the tabel.

And I am having a button at the end of the page. When I click the submit button, the datas entered in the HTML table should be inserted into the access database.

I have created the access mdb in my local.

If I wrirte my input type code after closing the table, the database is updated with those values.
But the html table data is not updated in the access database.
I have attached my coding with this request.

please help me.
Attached Files
File Type: txt Productivityv1.txt (4.3 KB, 19 views)
gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,126
#2: Oct 13 '09

re: How to update the access database with the HTML table data


Quote:

Originally Posted by susinthaa View Post

If I wrirte my input type code after closing the table, the database is updated with those values.
But the html table data is not updated in the access database.
I have attached my coding with this request.

could you try to rephrase that ... so that it becomes a bit more clear what the problem is?
RamananKalirajan's Avatar
Needs Regular Fix
 
Join Date: Mar 2008
Location: Chennai - India
Posts: 348
#3: Oct 13 '09

re: How to update the access database with the HTML table data


Hi Susinthaa,
I have gone through your code I dont about the DB Connection stuff. But i noticed one thing.. In the Query statement you have directly used names.value. Its like you can access an input value directly like that. If you are having an input element means have an id for that element.

ex:
HTML Code

Expand|Select|Wrap|Line Numbers
  1. <input type="text" id="names" name="names" />  
In the JS you can access that element value using

Expand|Select|Wrap|Line Numbers
  1. document.getElementById('names').value
--> this will return the elements value. Just try and post back if you have any issues

Thanks and Regards
Ramanan Kalirajan
Reply