Finally found 2 different ways to recover part of my var values in the checkout.psp script.
1, At the top of the "MAIN" section, I wrote one line per var, such as
$b_first = $_POST['b_first]);
This recovers all vars filled in by the user, and the TOTAL, SUBTOTAL ... vars
No so for the basket item vars. Here's why. The script expect to receive vars like ID_1, ID_2 ... one for each item in the basket. What the script actually recovers is ONE single var named "ID_". I can cheat and write the following line:
$ID_1 = $_POST['ID_'];
That would recover the values for one basket item. But then what about ID_2, ID_3 ... They are said "undefined". Actually, even if there are more than one item in the basket, the script seems to receive only one ID_ variable, the one corresponding to the last item that was put in the basket. So, I am stuck here: I can handle only 1 basket item per session!!!
Okay. I found out that if I would declare "register_globals = on" instead of "off" in the PHP.INI file on my server, my vars would be recovered automatically. This is TRUE. After modifying my PHP.INI file, I do not need the "$b_first = $_POST['b_first'];" lines anymore. But still, my basket item vars are missing, and are not recovered. I am still stuck in the same situation as above. I can still cheat for the first basket item, but then no more than 1 item per session!!! Which of course is not the way to do it.
At last, there propably is a good side to it: I am getting to learn php, ever so slowly!!!
NOTE THAT SAME GOES WITH THE DEMO VERSION
I suppose the problem must be with a config setting somewhere because I have the same problem wether I use checkout.pl or checkout.php: simply stated, the cart items values (product name, id, qty etc) do not make their way to the checkout scripts (confirmation message and csv file)
Anybody can help or advise?