Your question needs to be answered in several parts.
First what type of database do you want to use? I have code for SQL Server 7.
What type of E-mail does your WEB site/ISP have? CDonts??, ASPMail???? I use ASPMail
Here's a start:
------------------------
<%@ Language=VBScript %>
<%Fname=request.querystring("FirstName"

%>
<%Lname=request.querystring("LastName"

%>
<%
Set Conn = server.CreateObject("ADODB.Connection"

Conn.Open "driver=SQL Server;server=clh.ij.net;uid=universal1;pwd=ULS1;database=Universal1;"
Set RS1 = Conn.Execute("INSERT INTO dbo.BrochureRequests (FIRSTNAME, LASTNAME) VALUES ('" & Fname & "', '" & Lname & "')"

%>
<%
Set Mail = Server.CreateObject("Persits.MailSender"

Mail.Host = "smtp.ij.net" ' Specify a valid SMTP server
Mail.From = "Webmaster@universal1.com" ' Specify sender's address
Mail.FromName = "WEB Site Auto Responder" ' Specify sender's name
Mail.AddAddress "dposton@universal1.com", "Guru of The WEB"
'Mail.AddReplyTo "info@veryhotcakes.com"
'Mail.AddAttachment "c:\images\cakes.gif"
Mail.Subject = "WEB site Brochure Request"
msg = "FIRSTNAME" & " " & Fname & Chr(13) & Chr(10)
msg = msg & "LASTNAME" & " " & Lname & Chr(13) & Chr(10)
Mail.Body = msg
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
%>
--------------------------------
DougP, MCP
Visit my WEB site
to see how Bar-codes can help you be more productive