<%@ Language=VBScript %> Request Literature - Symtx, functional test solutions <% If Not Server.HTMLEncode(Request.QueryString("Message")) = "True" Then 'No information has been input yet, so provide the form. %>

  Interested in learning more about Symtx? We will be happy to send you a corporate brochure, product catalog (CD), or any datasheets displayed on our web site upon your request. Please complete the form below and let us know how we may assist you .

* = Required Field
* Name:
* Company:
* Title:
* Address1:
Address 2:
* City:
* State:
* Zip Code:
* E-mail:
* Phone - ext.
Fax: -
Mobile: -
 
* Industry:

Other:

For multiple selections, hold the [Ctrl] key for PC users, or the Command feature for Macintosh users.
Send Me::
  Notify me of new application notes and industry platforms
Please have a sales representative contact me about opportunities with Symtx
  Please send me HTML emails
Please send me text formatted emails
 
 

 

<% Else 'The HIDDEN button above sets the Message variable to True. 'We know now that form data has been entered. 'Get the data from the form. We will be inserting it into the database. 'Access doesn't like some characters, such as single-quotes, so encode the ' data using the HTMLEncode method of the ASP Server object. dim strTB1, strTB2, strTB3, strTB4, strTB5, strTB6, strTB7, strTB8, strTB9, strTB10, strTB11, strTB12, strTB13, strTB14, strTB15, strTB16, strTB17, strTB18,strTB19,strTB20,strCommand strTB1 = Server.HTMLEncode(Request.QueryString("fullName")) strTB2 = Server.HTMLEncode(Request.QueryString("companyName")) strTB3 = Server.HTMLEncode(Request.QueryString("jobTitle")) strTB4 = Server.HTMLEncode(Request.QueryString("Address1")) strTB5 = Server.HTMLEncode(Request.QueryString("Address2")) strTB6 = Server.HTMLEncode(Request.QueryString("city")) strTB7 = Server.HTMLEncode(Request.QueryString("state")) strTB8 = Server.HTMLEncode(Request.QueryString("zipCode")) strTB9 = Server.HTMLEncode(Request.QueryString("email")) strTB10 = Server.HTMLEncode(Request.QueryString("areaCode")) strTB11 = Server.HTMLEncode(Request.QueryString("phone")) strTB12 = Server.HTMLEncode(Request.QueryString("extension")) strTB13 = Server.HTMLEncode(Request.QueryString("faxarea")) strTB14 = Server.HTMLEncode(Request.QueryString("faxphone")) strTB15 = Server.HTMLEncode(Request.QueryString("mobileareaCode")) strTB16 = Server.HTMLEncode(Request.QueryString("mobilephone")) strTB17 = Server.HTMLEncode(Request.QueryString("industry")) strTB18 = Server.HTMLEncode(Request.QueryString("information")) strTB19 = Server.HTMLEncode(Request.QueryString("notifymethod")) strTB20 = Server.HTMLEncode(Request.QueryString("emailformat")) 'This is a connection string. ADO uses it to connect to a database through the Access driver. 'It needs the provider name of the Access driver and the name of the Access database. 'Connection strings are slightly different, depending on the provider being used, ' but they all use semicolons to separate variables. 'If this line causes and error, search in your registry for ' Microsoft.JET to see if 4.0 is your version. strProvider = "Provider=Microsoft.JET.OLEDB.4.0;Data Source=D:\InetPub\Symtx Internet - NEW\data\request.mdb;" 'This creates an instance of an ADO Connection object. 'There are 4 other ADO objects available to you, each with different methods and 'properties that allow you to do almost anything with database data. Set objConn = server.createobject("ADODB.Connection") 'The Open method of the Connection object uses the connection string to ' create a connection to the database. objConn.Open strProvider 'Define the query. 'There are many types of queries, allowing you to add, remove, or get data. 'This query will add your data into the database, using the INSERT INTO key words. 'Here, GuestBook is the name of the table. 'You need single-quotes around strings here. strCommand = "INSERT INTO request (fullName,companyName,jobTitle,Address1,Address2,city,state,zipCode,email,areaCode,phone,extension,faxarea,faxphone,mobileareaCode,mobilephone,industry,information,notifymethod,emailformat) VALUES ('" strCommand = strCommand & strTB1 & "','" & strTB2 & "','" & strTB3 & "','" & strTB4 & "','" & strTB5 & "','" & strTB6 & "','" & strTB7 & "','" & strTB8 & "','" & strTB9 & "','" & strTB10 & "','" & strTB11 & "','" & strTB12 & "','" & strTB13 & "','" & strTB14 & "','" & strTB15 & "','" & strTB16 & "','" & strTB17 & "','" & strTB18 & "','" & strTB19 & "','" & strTB20 strCommand = strCommand & "')" 'Execute the query to add the data to the database. objConn.Execute strCommand Response.Redirect("thankyou.asp") End If %>