So how would you do this? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: So how would you do this? (/showthread.php?tid=33415) |
So how would you do this? - El Forum - 08-25-2010 [eluser]Bionicjoe[/eluser] This is a pretty generic question that could be answered with Javascript or something else. Doesn't have to be all CI, but I need some pointers & like the forums here. :-) I have a need to calculate impact numbers for groups of customers located in different cities. The customers are grouped by services within each city. Imagine an Excel table similar (but bigger) pictured below. Code: CITIES BASIC DIGITAL HD I'd like these numbers to be hidden from the user pretty much. The user would be presented with a series of checkboxes for each number entity. Selecting them would total them & enter them into a field (as a "value") that would be submitted as part of my form. So if a user selected Digital & HD in Boston the IMPACT field would be populated with 7500, the total for those Boston customers. Any help is appreciated. So how would you do this? - El Forum - 08-25-2010 [eluser]Georgi Budinov[/eluser] According to me the best way to do this is to make the calculations on the server-side. No hidden fields populated with client-side calculations and so on, of course only if the requirements allow this. |