Code:
<%
Dim connection, recordset
Dim SQL, sConnString, username
Dim name, company, title,address, address2, city, state, zip, phone, fax, industry, industry_other, email, attendees, totalprice, name1, title1, email1,name2, title2, email2,name3, title3, email3,name4, title4, email4,name5, titel5, email5,rdate, payment, card,expiration, yes_no,b_name,b_address,b_address2,b_city,b_state,b_zip,b_signature
SQL = "SELECT * FROM ACCOUNT ORDER by company"
sConnString = "Driver={SQL Server};Server=xxxxx;Database=xxxxxx;Uid=xxxxxx;Pwd=xxxx;"
Set connection = Server.CreateObject("ADODB.Connection")
Set recordset = Server.CreateObject("ADODB.Recordset")
connection.Open sConnString
recordset.Open SQL,connection
do while NOT recordset.EOF
If recordset.EOF then
response.Write "There were no records returned."
end if
if username = "mktg" then
response.write("<strong>Contact Information</strong><br>")
Request.Form("name")
if name <> "" then
Response.Write("Name: " & recordset("name")& "<br>")
end if
if company <> "" then
Response.Write("Company: " & recordset("company")& "<br>")
end if
if title <> "" then
Response.Write("Title: " & recordset("title")& "<br>")
end if
if address <> "" then
Response.Write("Address: " & recordset("address")& "<br>")
end if
if address2 <> "" then
Response.Write("Address: " & recordset("address2")& "<br>")
end if
if city <> "" then
Response.Write("City: " & recordset("city")& "<br>")
end if
if state <> "" then
Response.Write("State: " & recordset("state")& "<br>")
end if
Where are the values of the above variables gotten from
Bookmarks