Re: [PHP] arithimetic

2002-05-02 Thread Jason Wong

On Friday 03 May 2002 01:33, Jas wrote:
 This is a simple problem but for some reason it is eluding me...
 I have a form that has text fields and check boxes, the function checks the
 form, counts words, strips the slashes, then based on the number of words
 and number of checkboxes selected calculates a cost... I have added 4 new
 checkboxes and when i try to do the calculation $total *= $section; it will
 not count the four check boxes and multiply the total by the number
 selected... here is the code, any help would be great:

How doesn't it work?

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Whom are you? said he, for he had been to night school.
-- George Ade
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] arithimetic

2002-05-02 Thread Craig Vincent

 $section = $box3 + $box4 + $box5 + $box6; // new ones i have added that
 won't work

Are the $box values listed here actually receiving values from the form?  If
you do an

echo $box3 $box4 $box5 $box6;

what do you see?

Could you provide the HTML for your form as well please?  It may help shed
some light on your situation.

Sincerely,

Craig Vincent



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php