Forums

ASP

This topic is locked

Breaking up form field..

Posted 22 May 2007 19:38:23
1
has voted
22 May 2007 19:38:23 phil C posted:
Need help with the following please.

my cart passes back details about sales, one of the fields is called 'cart' ie:
'cart=First description:1:9.99:0<img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>X001~Second description:2:8.99:0<img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>T0045'

Each product is delimited by a ~ and description, quantity, price, shipping units,stock code by colons :

hereswhat i need to do.

take first product details, assign to variables and insert into database
then loop back for next product and do same until end of line..

i can do the insert to B bit but only as one line at moment..

thanks phil

Reply to this topic