Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  How to calculate value based on other fields and post

phpMyEdit Configuration     How to calculate value based on other fields and post
Odoslať novú tému   Odpovedať na tému    
 
Hobb3s     Založený: 06.06.2007   Príspevky: 6  
Príspevok Zaslal: 2007-06-06 20:34
Návrat hore  Odpovedať s citátom     

Hello,
I'm very new to php, and am currently on the low side of the steep learning curve.
I was wondering how I can have the user 'add' field1 through field5, and when they click save(or edit) have field6 generated (ie: field6 = field2*field3). So that it is calculated and posted to the database without the user even seeing field6 in the add/edit page.
I'm not sure how/where to go about this. Any help is much appreciated.
Thanks.

I've figure out after reading how to have it generate and display the multiplied value, however I'm still looking for how to get that value actually posted to the database field.. thanks

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov