Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > how to write codes to connect access database using html codes

Thread Tools

how to write codes to connect access database using html codes

hiralcp hiralcp is offline
Junior Member
Join Date: Dec 2007
Posts: 3
Please somebody help me with my codes. I am trying to Insert the data to access database using Html and javascript. but it doesnt codes are as below:


<title>Feedback Form</title>

<script type="text/javascript">

function getSubmit()

var name,email,comments;


var cn = new ActiveXobject("ADODB.Connection");

var rs = new ActiveXObject("ADODB.Recordset");

var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Documents and Settings\Velosys2-office\My Documents\feedback\Users.mdb";

var SQL = "INSERT INTO user_tbl(uName,Email,Comments) VALUES (" & "'" & name1 & "'," & "'" & email & "'," & "'" & commnets & "')";

rs.Open(SQL, cn);
rs(2)=email.value ;

response.write("your data is submited");




<div align="center">
<table width="80%" border="0">
<td><b>FEEDBACK FORM</b></td>
<td>Name :</td>
<td><input type="text" name="uname" ></td>
<td>Email :</td>
<td> <input type="text" name="email"></td>
<td>Comments :</td>
<td><textarea name="comments"></textarea></td>
<td><input type="button" value="submit" onclick="getSubmit();"> </td>


Looking forward for help.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Database Database Database Database Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase Computer Information 0 09-26-2012 09:40 AM
Virtual Key Codes, Scan Codes and ASCII Codes in C C Programming 2 08-20-2005 11:04 AM
RegEx replace of html codes to ascii codes Greg -- ASP .Net 4 08-09-2005 07:27 PM