Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Passing variables through forms

phpMyEdit General     Passing variables through forms
Post new topic   Reply to topic    
 
nepto     Joined: 06 Jan 2003   Posts: 320   Location: Phoenix, Arizona (USA)
Post Posted: 2003-12-04 20:16
Back to top  Reply with quote     

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     Joined: 02 Feb 2003   Posts: 19  
Post Posted: 2003-12-04 23:17
Back to top  Reply with quote     

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     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2003-12-05 01:05
Back to top  Reply with quote     

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     Joined: 02 Feb 2003   Posts: 19  
Post Posted: 2003-12-10 22:33
Back to top  Reply with quote     

Thanks - that should be exactly what I need !!

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy