Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, October 18, 2026
About Us
O nás
Magazine
Magazín
Open Source
Otvorený softvér
CVS
CVS
Services
Služby
Index  »  Projects  »  phpMyEdit  »  Forum  »  Conditional Lookup

phpMyEdit General     Conditional Lookup
Post new topic   Reply to topic    
 
Paulinho Cé     Joined: 22 Feb 2013   Posts: 3  
Post Posted: 2013-03-12 13:01
Back to top  Reply with quote     

Code:

$opts['fdd']['cidade'] = array(
'name'     => 'Cidade',
'select'   => 'T',
'maxlen'   => 30,
'sort'     => true,
'values'   => array(
     'table' => 'cidades',
     'column' => 'nome',
   )
);
$opts['fdd']['cod_cidade'] = array(
'name'     => 'Cod cidade',
  'select'   => 'T',
'maxlen'   => 11,
'sort'     => true,
'values'   => array(
     'table' => 'cidades',
     'column' => 'cod_cidade',
  'filters'     => "cod_cidade = ???????"
)
);


?????? = $opts['fdd']['cidade'] = array() (item selected)


I want to select the city in the first field and want to appear only the
city code selected in the second field.
Where I capture the value of the selection of the first field?
Filter is the correct way to display the corresponding code in the second
field?
Please give me some help and I will be immensely grateful.

Thank you and congratulations
Paulo
From Brazil

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Odkazový formulár · Application form · Prihláška
Report bug on PLATON.SK website · Upozorniť na chybu na PLATON.SK webstránke · Terms of use · Podmienky použitia · Privacy policy · Ochrana osobných údajov