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  »  default values for hidden fields

phpMyEdit General     default values for hidden fields
Odoslať novú tému   Odpovedať na tému    
 
david     Založený: 20.05.2007   Príspevky: 2  
Príspevok Zaslal: 2007-05-20 14:18
Návrat hore  Odpovedať s citátom     

I am hiding a field with the 'options'=>'H' setting; however, I'm also setting a default value for the hidden field with the 'default' => value setting. When I do this and records are added, the hidden fields do not receive the default value when inserted. Is there a way to make hidden fields receive the default value?

 
david     Založený: 20.05.2007   Príspevky: 2  
Príspevok Zaslal: 2007-05-29 14:16
Návrat hore  Odpovedať s citátom     

Thanks for the response Doug. The default is not set in the MySQL schema because it is not the same for each editor of the table. However, it is constant for any given session and user. I've learned that if you include the 'A' option, the field is included in the insert statement. So 'options'=>'HA' seems to be the solution.

 
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