On the page where you receive variables from a form on another page, just use them to calculate the price.
I don't know how you calculate it, so I cannot show an example, but from the form you would probably get three values:
$_POST ['************'], $_POST ['smoking'], and $_POST ['age']. Then use them.
How to transfer variables from one page to another, I tried to explain on this thread:
http://p2p.wrox.com/topic.asp?TOPIC_ID=42691
You will have to use the drop-down menus probably, like this:
Code:
<select name="************"><option value='1'>Female</option>
<option value='2'>Male</option></select>
or adding the empty choice:
Code:
<select name="************"><option value='0' selected='selected'>-Choose-</option>
<option value='1'>Female</option>
<option value='2'>Male</option></select>