How to send data in a form to a database

Posted on 2002-03-12
Last Modified: 2008-03-06
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
Question by:ktpule
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 19

Expert Comment

ID: 6857316
Some good references --

There are tons more. That should get you started.
LVL 53

Expert Comment

ID: 6857387
The points are meaningless, when you never grade anyway.

Attention experts:

11 asked  0 grade

help at your own risk.


Accepted Solution

sumeshkt earned 15 total points
ID: 6858177
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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

LVL 53

Expert Comment

ID: 6858361

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


Expert Comment

ID: 6858510
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.

Expert Comment

ID: 6905987
Admin notified of User neglect. Force-accepted by
CS Moderator


I agree; hence a C.
LVL 53

Expert Comment

ID: 6906005


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question