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

why are records wrtten ? ....Fisrt timer ! ;-)

Status
Not open for further replies.

Yogi39

Technical User
Jun 20, 2001
273
CA
<%
On Error Resume Next

strErrorUrl = &quot;&quot;

Err.Clear

Set fp_conn = Server.CreateObject(&quot;ADODB.Connection&quot;)
FP_DumpError strErrorUrl, &quot;Cannot create connection&quot;

Set fp_rs = Server.CreateObject(&quot;ADODB.Recordset&quot;)
FP_DumpError strErrorUrl, &quot;Cannot create record set&quot;

fp_conn.Open Application(&quot;login_name_ConnectionString&quot;)
FP_DumpError strErrorUrl, &quot;Cannot open database&quot;

fp_rs.Open &quot;Results&quot;, fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable
FP_DumpError strErrorUrl, &quot;Cannot open record set&quot;

fp_rs.AddNew
FP_DumpError strErrorUrl, &quot;Cannot add new record set to the database&quot;
Dim arFormFields0(6)
Dim arFormDBFields0(6)
Dim arFormValues0(6)

arFormFields0(0) = &quot;ex&quot;
arFormDBFields0(0) = &quot;ex&quot;
arFormValues0(0) = Request(&quot;ex&quot;)
arFormFields0(1) = &quot;ass&quot;
arFormDBFields0(1) = &quot;ass&quot;
arFormValues0(1) = Request(&quot;ass&quot;)
arFormFields0(2) = &quot;cq&quot;
arFormDBFields0(2) = &quot;cq&quot;
arFormValues0(2) = Request(&quot;cq&quot;)
arFormFields0(3) = &quot;eb&quot;
arFormDBFields0(3) = &quot;eb&quot;
arFormValues0(3) = Request(&quot;eb&quot;)
arFormFields0(4) = &quot;ogin&quot;
arFormDBFields0(4) = &quot;ogin&quot;
arFormValues0(4) = Request(&quot;ogin&quot;)
arFormFields0(5) = &quot;ail&quot;
arFormDBFields0(5) = &quot;ail&quot;
arFormValues0(5) = Request(&quot;ail&quot;)

FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0


fp_rs.Update
FP_DumpError strErrorUrl, &quot;Cannot update the database&quot;

fp_rs.Close
fp_conn.Close


%>
<html>

<head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 4.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
<title>Login Name</title>
</head>

<body>

<form method=&quot;POST&quot; action=&quot;n3.asp&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top