Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I'm sure you guys can help me out

0 views
Skip to first unread message

Thomas J.C.

unread,
Dec 11, 2000, 3:38:00 AM12/11/00
to

Currently I'm working on a shopping cart <--> Internet payment connection. The Internet payment wants me to send a HTML table with the contents of the shopping cart, in their ASP script (that runs on my server) they have a variable OrderContent = "<b>Here you content</b>"

Well, I have this script that generates the table, something like this

<% Begin Script % >
<table>
Price <%=price%>
Amount <%=amount%>
</table>
<% Move Next %>


How do I get this HTML that is being generated into that "OrderContent" ????

Thanks in advance y'all,


Thomas


* Sent via Developersdex.com http://www.developersdex.com *
The Web Developers Index

Kris Eiben

unread,
Dec 11, 2000, 8:26:36 AM12/11/00
to
Instead of writing out that HTML immediately, do something like:
<%
OrderContent = OrderContent & "<table>" &_
"Price: " & price & "<br>Amount: " & amount & "</table>"
%>

Then, response.write the whole thing at once.

Thomas J.C. wrote in message ...

Thomas J.C.

unread,
Dec 11, 2000, 9:48:18 AM12/11/00
to
But I still have that movenext problem.

It would be easy if there was only one product in the order content, but there can be many more.

Kris Eiben

unread,
Dec 11, 2000, 2:36:47 PM12/11/00
to
You didn't mention a "movenext" problem.
OrderContent = ""
do until rs.EOF
' add to OrderContent
rs.movenext
loop

It looks like you're starting a new table each time through the loop.
Probably don't want to do that.

Thomas J.C. wrote in message ...

0 new messages