Ok so what i need is for some way to take the data that the is entered into the text box at the top of the page and then run it in the SQL query, the query just searches for that phonenumber and brings back the number and the operator.
Then once i have that, i need it to write the Phonenumber and the Operator into a table..
Any help is appreciated :)
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CPS LCR Customer List</title></head><body><form id="form1" name="form1" method="post" action=""> <label> <input type="text" name="Text" id="Text" /> Please Enter the CPS / LCR Number</label></form><%if len(request.form("Text")) <> "11" then response.write("Error - Please Enter an 11 Digit Number") else response.write("")end ifset Con = Server.CreateObject("ADODB.Connection")con.open "File Name=" & Server.MapPath("EbillzSQL.UDL")SQL = "SELECT CustomerIdentifier, Operator From LCRCustList Where CustomerIdentifier = '" & request.form("Text")& "'"
Open in new window