Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving form data to database

Status
Not open for further replies.

dylan03

Technical User
Mar 17, 2003
15
0
0
US
HELLLLLLLLLLP! I used MS FrontPage's database interface to create a webpage that is supposed to save the form data to the database.

I created and verified the connection between the db & webpage. I can enter information into the webpage ( and I receive a confirmation page, but it doesn't save the information to the database.

Can anyone help me figure out what I am doing wrong?
 
This is a HUGE question..... there is a lot that could go wrong....

1. ADODB Connection
EXAMPLE:
Actionvar=Request.QueryString("actionvar")

path=Server.MapPath(".")

Set conn = server.createobject("adodb.connection")
StrConnString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & path & "\YOURACCESSDATABASE.mdb;Persist Security Info=False"
conn.Open StrConnString

2. SQL Statement
EXAMPLE:
SQLstmt = "INSERT INTO YOURDATABASETABLE (DATA1,DATA2)"
SQLstmt = SQLstmt & " VALUES ("
SQLstmt = SQLstmt & "'" & DATA1 & "'" & ", "
SQLstmt = SQLstmt & "'" & DATA2 & "'" & ") "
conn.execute(SQLstmt)

3. Code Syntax

The list could go on and on...... start with the above.
GOOD LUCK!!!!!!!!!!!!!!!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top