F
Farnzy
I am trying to concatenate four strings. I have them in four variables and I
get errors when I try to use concat. Can you look at this and see what my
problem is?
I am assigning these variables in the DRW area right after the line that is
grabbing each field.
If I assign each one to the variable fullname singly then they show in my
table. I just can't get a correct concat statement.
I get errors like: Object Required - when I have the concat statement as <%
fullname = lname.concat(fname) %>
and
Expected end of statement
/Finance/PayBills.asp, line 125
fullname = lname.concat fname
when the concat statement is: <% fullname = lname.concat fname %>
<% CustNumber = fp_rs("CUST_NO") %>
<% lname = fp_rs("LAST_NAME") %>
<% fname = fp_rs("FIRST_NAME") %>
<% slname = fp_rs("SPOUSE_LAST_NAME") %>
<% sfname = fp_rs("SPOUSE_FIRST_NAME") %>
<% fullname = lname.concat(fname) %>
<TABLE>
<form action="https://epayment.epymtservice.com/epay.jhtml" method="post">
<TR><TH ALIGN=RIGHT>Customer Number(AKA Biller Payor ID):</TH><TD><input
type="text" name="billerPayorId" value= <% =CustNumber %>></TD></TR>
<TR><TH ALIGN=RIGHT>Product Code:</TH><TD><SELECT NAME="productCode"><OPTION
VALUE="SewerPayment">Sewer Payment
</SELECT></TD></TR>
<TR><TH ALIGN=RIGHT>Amount Due:</TH><TD><input type="text" name="amountDue"
value=<% = BalanceToSend%>></TD></TR>
<TR><TH ALIGN=RIGHT>Current Balance Due:</TH><TD><input type="text"
name="CurrentBalanceDue" value=<% = BalanceToSend%>></TD></TR>
<TR><TH ALIGN=RIGHT>Customer Number:</TH><TD><input type="text"
name="CustomerNumber" value=<% =CustNumber %>></TD></TR>
<TR><TH ALIGN=RIGHT>Line Identifier:</TH><TD><input type="text"
name="LineIdentifier" value="UB"></TD></TR>
<TR><TH ALIGN=RIGHT>Name On Account:</TH><TD><input type="text"
name="NameOnAccount" value=<% = fullname %>></TD></TR>
<TR><TH ALIGN=RIGHT>Biller Id:</TH><TD><input readonly type="text"
name="billerId" value="SWR"></TD></TR>
<TR><TH ALIGN=RIGHT>Biller Group ID:</TH><TD><input readonly type="text"
name="billerGroupId" value="MIS"></TD></TR>
<TR><TH ALIGN=RIGHT>Disallow Login?:</TH><TD><input readonly type="text"
name="disallowLogin" value="N"></TD></TR>
<TR><TH ALIGN=RIGHT></TH><TD></TD></TR>
<TR><TH ALIGN=CENTER><input type="reset" value="Reset"></TH><TH
ALIGN=CENTER><input type="submit" value="Make Payment"></TH></TR>
</form>
</TABLE>
get errors when I try to use concat. Can you look at this and see what my
problem is?
I am assigning these variables in the DRW area right after the line that is
grabbing each field.
If I assign each one to the variable fullname singly then they show in my
table. I just can't get a correct concat statement.
I get errors like: Object Required - when I have the concat statement as <%
fullname = lname.concat(fname) %>
and
Expected end of statement
/Finance/PayBills.asp, line 125
fullname = lname.concat fname
when the concat statement is: <% fullname = lname.concat fname %>
<% CustNumber = fp_rs("CUST_NO") %>
<% lname = fp_rs("LAST_NAME") %>
<% fname = fp_rs("FIRST_NAME") %>
<% slname = fp_rs("SPOUSE_LAST_NAME") %>
<% sfname = fp_rs("SPOUSE_FIRST_NAME") %>
<% fullname = lname.concat(fname) %>
<TABLE>
<form action="https://epayment.epymtservice.com/epay.jhtml" method="post">
<TR><TH ALIGN=RIGHT>Customer Number(AKA Biller Payor ID):</TH><TD><input
type="text" name="billerPayorId" value= <% =CustNumber %>></TD></TR>
<TR><TH ALIGN=RIGHT>Product Code:</TH><TD><SELECT NAME="productCode"><OPTION
VALUE="SewerPayment">Sewer Payment
</SELECT></TD></TR>
<TR><TH ALIGN=RIGHT>Amount Due:</TH><TD><input type="text" name="amountDue"
value=<% = BalanceToSend%>></TD></TR>
<TR><TH ALIGN=RIGHT>Current Balance Due:</TH><TD><input type="text"
name="CurrentBalanceDue" value=<% = BalanceToSend%>></TD></TR>
<TR><TH ALIGN=RIGHT>Customer Number:</TH><TD><input type="text"
name="CustomerNumber" value=<% =CustNumber %>></TD></TR>
<TR><TH ALIGN=RIGHT>Line Identifier:</TH><TD><input type="text"
name="LineIdentifier" value="UB"></TD></TR>
<TR><TH ALIGN=RIGHT>Name On Account:</TH><TD><input type="text"
name="NameOnAccount" value=<% = fullname %>></TD></TR>
<TR><TH ALIGN=RIGHT>Biller Id:</TH><TD><input readonly type="text"
name="billerId" value="SWR"></TD></TR>
<TR><TH ALIGN=RIGHT>Biller Group ID:</TH><TD><input readonly type="text"
name="billerGroupId" value="MIS"></TD></TR>
<TR><TH ALIGN=RIGHT>Disallow Login?:</TH><TD><input readonly type="text"
name="disallowLogin" value="N"></TD></TR>
<TR><TH ALIGN=RIGHT></TH><TD></TD></TR>
<TR><TH ALIGN=CENTER><input type="reset" value="Reset"></TH><TH
ALIGN=CENTER><input type="submit" value="Make Payment"></TH></TR>
</form>
</TABLE>