-
is it my problem in summation of input of operation2 and the result will be appear in operation2_total input? will be resolved by using the code that you given.?
the you given is amazing and I never think that that code is the solution, honestly now I can't code the code you given.
Did you see my other thread about sum?
Thank you
-
I did have a look at this thread:
http://www.dynamicdrive.com/forums/s...404#post243404
If that's the one you mean, I'm not sure if I can help with that. I've never used mysql_query() and don't know what comes back from it. I imagine it would vary depending upon what's in the database. I have no idea what format the response would take. PHP in general isn't my strong point. I'm even weaker in MySQL. I don't see where anything is used in that thread or its attachments that attempts to do any kind of mathematic addition other than increasing incrementally the $ctr variable.
If you're looking for a javascript solution, I might be able to help. One thing you should know about javascript though, and this applies to what I've contributed in this thread as well, is that if the user has javascript disabled, none of the javascript stuff will work.
This is unlike PHP where all browsers see the same thing more or less regardless of their settings. But if you want to do your math in PHP and it involves input from the user, the user must submit a form with their input before PHP can have access to any input from them. Javascript could perform an assist here by sending new information to and fetching the results from the server via AJAX. That could make submitting a form unnecessary except for folks with javascript unavailable.
But that's not what the javascript offered by me in this thread does. It's wholly dependent upon the user's browser.
To do what I propose is pretty complicated though and a bit outside the purposes of this forum. You'd be better off with a paid technician and/or some sort of CMS.
-
1 Attachment(s)
I attached the image of my form.
Thank you
-
I think is not possible to happen what i want using php code.I am right?because it's too complicated.