Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Passing variables through forms

phpMyEdit General     Passing variables through forms
Odoslať novú tému   Odpovedať na tému    
 
nepto     Založený: 06.01.2003   Príspevky: 320   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2003-12-04 20:16
Návrat hore  Odpovedať s citátom     

See also filters:

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.filters.html

And $opts['cgi']['persist'] as well:

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.cgi-variables.html

_________________
Ondrej Jombik (Nepto)
Visit my homepage , review my recent CV or projects and give me some feedback .
 
Denver Dave     Založený: 02.02.2003   Príspevky: 19  
Príspevok Zaslal: 2003-12-04 23:17
Návrat hore  Odpovedať s citátom     

Those were all good suggestions on how to use variables in the form, but what if we want to pass variables through the form. For example we have a variable that is important before we call the form - then we call phpmyedit but the variable is not part of the actual database record being updated. Then we call a trigger and the original variable is needed (in my case to add a record to a second table.) For now I have sometimes created dummy fields in the first updated record just to have info to pass to the trigger, but there has to be a more efficient way.

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2003-12-05 01:05
Návrat hore  Odpovedať s citátom     

what is use is
$opts['fdd']['id']['something_dummy'] = 'your variable';

where 'id' is a valid and always active column, 'something_dummy' is a string that is not a valid phpMyEdit option.

in a trigger it is reachable via $this->fdd['id']['something_dummy'];

veeeeeery nasty, but works

 
Denver Dave     Založený: 02.02.2003   Príspevky: 19  
Príspevok Zaslal: 2003-12-10 22:33
Návrat hore  Odpovedať s citátom     

Thanks - that should be exactly what I need !!

 
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