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
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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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 how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

856 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