I am a newbie in ASP programming. I have this working web order program, now I want to email the customer the detail of their order right after the session is over. I put all the items into a "bag" but I couldn't find a way to list of in the mail body text... array will return a type mismatch...
Had anyone done this before and know the syntax and logic? Please help. Here is a part of the code
for i = 1 to ItemCount
currTotal = currTotal + (bag(BagPrice, i) * bag(BagItemQuantity, i))
body = bag(BagProductId, i) & " " & bag(BagProductName, i) & " " & bag(BagItemQuantity, i) & " " & FormatCurrency(bag(BagPrice, i)) & VbCrLf
Mailer.BodyText = body & VbCrLf & body2 & VbCrLf & "Total: " & FormatCurrency(currTotal) &_
VbCrLf & VbCrLf & "Thank you."
Once it emails, only the last item in the array shows....
Thanks in advance for your help,