You should change the checkbox names, they are all the same now (each checkbox name has to be unique). see my other post of identical question at http://www.daniweb.com/techtalkforum...tml#post156340
Once your script know which course the user chose, you can do some math to sum up the fee based on post data.
Actually, each checkbox name does not have to be unique. In fact you can have something such as:
[HTML]
<input type='checkbox' name='myCheckbox' value='1'>
<input type='checkbox' name='myCheckbox' value='2'>
<input type='checkbox' name='myCheckbox' value='3'>
<input type='checkbox' name='myCheckbox' value='4'>
[END HTML]
[PHP]
/***********
$_REQUEST['myCheckbox'] will equal an array of selected values.
***********/
foreach($_REQUEST['myCheckbox'] as $singleVar)
{
//$singleVar will equal the value of a selected checkbox,
}
[END PHP]
Maybe I didn't read the thread thoroughly enough... I apologize if I missed something.
-Adam