[PHP-DB] Re: calculations based on checkbox value

2002-03-23 Thread Hugh Bothwell
Here is some code, which I modestly suggest is superior for the following reasons: 1. Includes simply scaffolding (ie a sample form). 2. Code is separated into functions, rather than one monolithic block. 3. Somewhat improved word-counting. == body { font-f

[PHP-DB] Re: calculations based on checkbox value

2002-03-22 Thread jas
10) { # if the users ad has more than 10 words in it than $quarters = the extra words times .20 $subtractor = $num - 10; $quarters = $subtractor * .20; } $subtotal = $price + $quarters; # price plus the number of words over 10 $total = $papers * $subtotal; # new price multiplied by number of pa