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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql and asp from a pdf form submitted as html.

Status
Not open for further replies.

jsanbor1

MIS
Apr 30, 2003
38
US
I am have been trying to use this .pdf form on my site and have my users fill that out instead of my plain html forms.

I can get the data to insert into my table now, but it all goes into the first field. It is driving me crazy!

here is the code on my asp page.

<%
Dim myConn, strSQL, objRecordset

set myConn = createobject("ADODB.Connection")
Set objRecordset = Server.CreateObject("ADODB.Recordset")


myConn.open "DRIVER={MySQL ODBC 3.51 Driver};"_
& "SERVER=localhost;"_
& "DATABASE=___;"_
& "UID=______;PWD=______; OPTION=3;"


strSQL = "INSERT INTO fap(nr, firstname, address)"
strSQL = strSQL & " VALUES ('','" & request.form("txtname") & "','" & request.form("txtaddress") & "')"

myConn.execute strSQL

myConn.close
Set myConn = nothing
Response.Redirect "fap_download.html"
%>

here is a screen shot of the result.

I have 2 fields on the form right now. first name and address. (I just typed sanborn into the address field)

mysqleu3.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top