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!
I was looking to create a simple cart function off of PHP that multiples one fixed number and one variable (based on user input). So, basically the user enters 5 into the 'quantity' box and since there is only one item costing $20 it would automatically recalculate to $100 and show that in a 'total' box. I would appreciate any resources to help guide and show me more in-depth about it. Below I have provided my code, which is simple and I am sure not really close at all to what the final product needs to be.