PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Sorry, I am relatively new with php. I havent been able to find out how to do this anywhere. This is the section i am having trouble with:
It worked for awhile, and then my submit button will completely disappear (which I dont really understand how the submit button is related to this line). What I am trying to do is make a list of the products that the person is trying to buy.
Anybody know the correct way to do this? I tried multiple ways of adding strings together, but nothing seems to work - at least not consistently. At lot of ways seem to only pass the first product and then prints the rest of the products.
when I tried what you suggested, the first product was passed (using authorizeNet):
x_product_nums : 1 -> BM-11040-C -> Benchmark
And this printed on the screen:
8007 -> Gold Medal Steamin' Demon #8007 Hot Dog Machine, 1 -> BM-11040 -> Benchmark "Street Vendor" Commercial Brand 4oz Popcorn Machine Popcorn Popper, ">
(3 products were ordered)
For some reason, it cuts off the Quanity of the 2nd product, and prints the rest to the screen. That is the same problem I have been getting with other attempts as well. ???
post your altered code where you made changes requested by feyd. If possible, it is always better if you can give the link to the working file else copy the ouput from the browser as it is and post it within
After selecting a few products and filling out the checkout page, there is a confirm page where the user is asked to enter their cc info. Thats where the above text is showing up. I am just trying to pass all the product info as hidden. I am trying to have it in the order of Quantity -> Product Number -> Name of product, .
okay I think maybe there is only a problem when i select a product that has quotes of some kind in the name. Would that be possible? anyway I am going to try a few more times and then remove the quotes from the products and see if thats the problem.
well apparently that was the problem. i swear i checked that before too! - i must have done something wrong when i tested last time. we will see if i have any more problems with it i guess ~