How to send data in a form to a database

How do you send data in a form to a database using HTML and I use ASP.For instance, How do you send Personal deatails to a database called "Project.mdb" and the name of the table is "Customer".Please give me a Hint.

I only have 15 points so I'll try to give you more points next time when I have them.So please bare with me.cheers
Who is Participating?
sumeshktConnect With a Mentor Commented:
Here is an example :

  <form name = "main" action ="Dbase.ASP" method="post">
    <input type="text" name="txtCustCode">
    <input type="text" name="txtCustName">
    <input type="submit" name="Submit">

Create a Data Source Name (eg:- ODBCDSNName) for the Databse Project.

Dbase.ASP :

  <form name = "aspMain">
    dim strValue1, strValue2
    strValue1 = request.form("txtCustCode")
    strValue1 = request.form("txtCustName")
    Set conn = Server.CreateObject("ADODB.Connection") "ODBCDSNName"
    strSQLQuery = "INSERT INTO Customer
                  (" & strValue1 & ", " & strValue2 & ")"
    Set rs = Server.CreateObject("ADODB.Recordset")
    rs.Open strSQLQuery, conn, 3, 3
Some good references --

There are tons more. That should get you started.
The points are meaningless, when you never grade anyway.

Attention experts:

11 asked  0 grade

help at your own risk.

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.


I would normally comment, on your obvious disregard for the protocol on the answer button and your unprofessional approach; but I think you and ktpule deserve each other.  

Looks like two of a kind...rotfl

You have asked 11 questions at this site and NEVER closed/awarded any of them.  ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.

Question(s) below appears to have been abandoned. Your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.

Please click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.

To view your open questions, please click the following link(s) and keep them all current with updates.

To view your locked questions, please click the following link(s) and evaluate the proposed answer.

------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.  Also, if you are interested in the cleanup effort, please click this link
Thank you everyone.
Moderator @ Experts Exchange

P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.
Admin notified of User neglect. Force-accepted by
CS Moderator


I agree; hence a C.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.