Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsWhat I need to do is after I have selected two or more check boxes is write them to a new table and delete them from the original db and then email, I have everything set up but the delete process. Here is the code I have so far.
<FORM NAME="form2" ACTION="outletupdate.asp" METHOD=POST ID="Form2">
<%
dim serial
'get Order ID from Request Form page
serial = Request.form("serial")
%>
<%
if serial = "" then
Response.Write "Enter Serial Number"
else %>
<%
Dim Class2
'On Error Resume Next
%>
<%
Set Class2 = Server.CreateObject("ADODB
Class2.Open "Outletsold",strConnect,ad
Class2.AddNew
Class2.Fields("serial") = Request.Form("serial")
Class2.Fields("firstname")
Class2.Fields("lastname") = Request.Form("lastname")
Class2.Fields("email") = Request.Form("email")
Class2.Fields("street") = Request.Form("street")
Class2.Fields("city") = Request.Form("city")
Class2.Fields("state") = Request.Form("state")
Class2.Fields("zip") = Request.Form("zip")
Class2.Fields("telephone")
Class2.Fields("dateentered
Class2.Update
Class2.Close
If Err.Number = 0 Then
%>
<!--New e-mail-->
<%
Dim firstname, lastname, email, street, city, state, zip, telephone
firstname = Trim(Request.Form("firstna
lastname = Trim(Request.Form("lastnam
email = Trim(Request.Form("email")
street = Trim(Request.Form("street"
city = Trim(Request.Form("city"))
state = Trim(Request.Form("state")
zip = Trim(Request.Form("zip"))
telephone = Trim(Request.Form("telepho
If (firstname <> "" and lastname <> "" ) Then
Dim objMail, aRecipients, message
Set objMail = Server.CreateObject("CDONT
objMail.From = email
objMail.To = "me"
objMail.Subject = "Outlet " & serial
objMail.Body = "First Name: " & firstname & VBCrLf & "Last Name: " & lastname & VBCrLf & "Street: " & Street & VBCrLf &"City: " & city & VBCrLf & "State: " & state & VBCrLf & "Zip: " & zip & VBCrLf & "Phone: " & telephone
objMail.Send
set objMail = Nothing
Else
%>
<FORM ACTION="<%=Request.ServerV
<%
end if
end if
end if
%>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: hujiPosted on 2006-12-07 at 10:14:24ID: 18095526
Comments are available to members only. Sign up or Log in to view these comments.