hi
when i submit a variable via a form, if the data has spaces in it , the data is truncated at the space ie name pete whitby, becomes pete, and my subsequent look up fails, has anyone any idea.
form sending data
<%
WHILE NOT orderHeader.EOF
Response.Write(vbNewLine & "<TR><TD><input type=radio name=bollox value=" & orderHeader("soNum" & "></td><td>" &_
orderHeader("soNum" & "</TD><TD>" &_
orderHeader("custRef" & "</TD><TD>" &_
orderHeader("coName" & "<input type=radio name=cust value=" & orderHeader("coName" & "></TD><TD>" &_
orderHeader("soID" & "</TD><TD>" &_
orderHeader("EfolderID" & "</TD><TD>" &_
"</TD></TR>"
orderHeader.MoveNext
WEND
%>
results page
<% @ LANGUAGE="VBSCRIPT" %>
<%
bolloxer=Request.Querystring("bollox"
custy=Request.Querystring("cust"
SQLSoNum="SELECT description, costEach, sellEach, margin, qtyOrd FROM order_Lines_tbl "
SQLSoNum=SQLSoNum & "WHERE soNum='" & bolloxer & "'"
SQLCust="SELECT ACCOUNT_REF, ADDRESS_1, ADDRESS_2, ADDRESS_5, CONTACT_NAME, TELEPHONE FROM Customer_tbl "
SQLCust=SQLCust & "WHERE NAME='" & custy & "'"
set conn = server.createobject("ADODB.Connection"
conn.open "FILEDSN=C:\Tips.dsn"
set orderLines=conn.execute(SQLSoNum)
set Customer=conn.execute(SQLCust)
%>
sorry about the variables but they are doing me head in.
Hopefully thanks in advance Bletey
when i submit a variable via a form, if the data has spaces in it , the data is truncated at the space ie name pete whitby, becomes pete, and my subsequent look up fails, has anyone any idea.
form sending data
<%
WHILE NOT orderHeader.EOF
Response.Write(vbNewLine & "<TR><TD><input type=radio name=bollox value=" & orderHeader("soNum" & "></td><td>" &_
orderHeader("soNum" & "</TD><TD>" &_
orderHeader("custRef" & "</TD><TD>" &_
orderHeader("coName" & "<input type=radio name=cust value=" & orderHeader("coName" & "></TD><TD>" &_
orderHeader("soID" & "</TD><TD>" &_
orderHeader("EfolderID" & "</TD><TD>" &_
"</TD></TR>"
orderHeader.MoveNext
WEND
%>
results page
<% @ LANGUAGE="VBSCRIPT" %>
<%
bolloxer=Request.Querystring("bollox"
custy=Request.Querystring("cust"
SQLSoNum="SELECT description, costEach, sellEach, margin, qtyOrd FROM order_Lines_tbl "
SQLSoNum=SQLSoNum & "WHERE soNum='" & bolloxer & "'"
SQLCust="SELECT ACCOUNT_REF, ADDRESS_1, ADDRESS_2, ADDRESS_5, CONTACT_NAME, TELEPHONE FROM Customer_tbl "
SQLCust=SQLCust & "WHERE NAME='" & custy & "'"
set conn = server.createobject("ADODB.Connection"
conn.open "FILEDSN=C:\Tips.dsn"
set orderLines=conn.execute(SQLSoNum)
set Customer=conn.execute(SQLCust)
%>
sorry about the variables but they are doing me head in.
Hopefully thanks in advance Bletey