I'm trying to add the finishing touches to an online shopping basket i have created. However, i am having problems sending information to the transaction site. i can send 1 item but i'd like to be able to send more than 1 item if the user is buying more than 1 item.
Here is the code that i have sending the datat to the 3rd party transaction site.
<form action="https://www.secure-server-hosting.com/secutran/secuitems.php" METHOD="POST">
<input type="hidden" name="filename" value="xxx/template.html">
<input type="hidden" name="secuitems" value="[|';
echo $row[NAME]; echo $row[FORMAT]; echo $row[SIZE]; echo '|';
echo $row[product_id]; echo '|';
echo $row[price]; echo '|';
echo $value; echo '|';
echo $sub_total; echo ']">';
echo '<input type="hidden" name="shippingtotal" value="2.50">
<input type="hidden" name="transactiontax" value="0">
<input type="hidden" name="transactionamount" value=echo "$total">
<input type="submit" name="submit" value="order">
</form>
whats happening here is it is sending the particular information for an item to the 3rd party site, ie.. SKU, size, name, type, price etc. But people are ordering more than one item and the code above only submits one item, the last one on their list of desired items, as all previous ones are overwritten.
I've read up on arrays but dont know what to do. I've tried while and for loops but to no avail. If anyone can give me some hints or even code, it would be very much appreciated.
There is nothing wrong with the code, i would just like it to be modified so that i can send more than just the 1 record.
Thanks
KJ