moisesbr Posted August 4, 2013 Share Posted August 4, 2013 Hi I am using the folowing sequence to make a sale:Search table_prices. Show price in order_page.phpCustomer inserts name, address, etc, press a button and go to order_done.phpSearch database_prices (by ID)Show price in order_done.php and insert order data in table_order.I was considering passing $price as parameter using GET or POST,but I imagine that somehow someone could modify $price still in order_page.php Is there a solution for this case or do I have to keep this redundancy ? The problem is that price discount has some calculations and I have to remember modify it always in both pages. Moises Quote Link to comment https://forums.phpfreaks.com/topic/280820-how-to-prevent-customer-to-change-price-while-it-is-variable/ Share on other sites More sharing options...
jcbones Posted August 4, 2013 Share Posted August 4, 2013 SESSION, or re-pull it from the DB. Quote Link to comment https://forums.phpfreaks.com/topic/280820-how-to-prevent-customer-to-change-price-while-it-is-variable/#findComment-1443436 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.