Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

How to prevent customer to change price while it is variable ?

$
0
0

Hi
 

I am using the folowing sequence to make a sale:

Search table_prices.

 

Show price in order_page.php

Customer inserts name, address, etc,   press a button and go to order_done.php

Search 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
 


Viewing all articles
Browse latest Browse all 13200

Trending Articles