以下是我计算中遇到问题的一部分。这个计算应该是23.4但是当我输入它时,我回来的电子邮件有24个(这个列表是为了找出家具将占用多少立方米)
$Multi = $_POST['bedqueen'] * 1.4 + $_POST['babybath'] * .1 <br/>
+ $_POST['babybouncer'] * .05 + $_POST['bassinet'] <br/>
* .25 + $_POST['bedbunk'] * 2 + $_POST['beddouble'] * 1.2
+ $_POST['bedfolding'] * .5 + $_POST['bedking'] * 2
+ $_POST['bedsingle'] * .6 + $_POST['bedsidetable']
* .2 + $_POST['blanketbox'] * .5 + $_POST['bookcase'] * 1
+ $_POST['chair'] * .15 + $_POST['changetable'] *.8 + $_POST['cod']
* .5 + $_POST['computer'] * .1 + $_POST['cot'] * .5 + $_POST['couch']
* 2.2 + $_POST['cupboard'] * 1 + $_POST['desk'] *1
+ $_POST['dressingtable'] * 1 + $_POST['headboard'] *.3
+ $_POST['lamp'] * .1 + $_POST['matt'] * .6 + $_POST['matts'] *.5
+ $_POST['mattq'] * .75 + $_POST['mattk'] * 1 + $_POST['mirror'] * .25
+ $_POST['picb'] * .1 + $_POST['porta'] * .4 + $_POST['pram'] * .4
+ $_POST['stereo'] * .4 + $_POST['suitcase'] * .2 + $_POST['rugb'] * .15
+ $_POST['tvportable'] * .2 + $_POST['wardrobe'] * 1
整个表格很长,所以我还没有添加所有内容,只有错误的部分。
干杯