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  »  Add mode with default value

phpMyEdit General     Add mode with default value
Post new topic   Reply to topic    
 
fffonck     Joined: 02 Nov 2008   Posts: 9  
Post Posted: 2008-12-01 14:17
Back to top  Reply with quote     

Hello everybody

Is this possible to go on a Add mode page to insert a new row, but with a default value for a field.

Ex in a url I have :
Code:
test.php?PME_sys_operation=Add


I want that, in the test table, the field PME_sys_qf1 has a default value (ex : 8)

Code:
test.php?PME_sys_operation=Add&PME_sys_qf1=8
doesn't work.

Have an idea ?

Thanks

 
fffonck     Joined: 02 Nov 2008   Posts: 9  
Post Posted: 2008-12-01 15:10
Back to top  Reply with quote     

It's ok, I did it.

My method :
I pass the value as a _GET value (link=8).

And I set the $opts['fdd']['field']['default'] = $_GET['link'];

;)

 
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