I have this form which automatically calculates the prices. you just put the number and it multiplies the value to a price rate. But i now have this situation where the price will change depending on the date chosen. is this possible? i am thinking of using elseif conditions to vary the price rates during different dates. is there any other way to do this using a database table or xml.
example:
date = price
jan 1 = 200
jan 2 = 300
jan 3 = 300
jan 4 = 300
jan 5 onwards = 200
if($date = ‘2010-01-02’):
$price = 300;
elseif($date = ‘2010-01-03’):
$price = 300;
elseif($date = ‘2010-01-04’):
$price = 300;
else:
$price = 200;
endif;