Hi everyone, i am new to PHP and the calculations and what I am going to ask is probably simple but I am stumped. Here goes. I am using Chronoforms and Joomla and I need a very simple addition done on a couple of input fields.
field1 = no. of nights stay
field2 = no. of adults
field3 = total cost
The thing is the prices change (example)
2 adults $140 per night
3 adults $200 per night
4 adults $250 per night
up to 8 adults, but if I can get the first 3 working I can do the rest (hopefully)
I need to find out how many adults(field2) for how many nights(field1) = total payment(field3)
I am having problems with the price change.
Anyone wanting a beer please help.
Thanks, Bernie
field1 = no. of nights stay
field2 = no. of adults
field3 = total cost
The thing is the prices change (example)
2 adults $140 per night
3 adults $200 per night
4 adults $250 per night
up to 8 adults, but if I can get the first 3 working I can do the rest (hopefully)
I need to find out how many adults(field2) for how many nights(field1) = total payment(field3)
I am having problems with the price change.
Anyone wanting a beer please help.
Thanks, Bernie