Posted by Tom
2015-05-28
Hi,
>I need him/her as Non-Active
Open web/codelib/asc/df.fl.(table-name).inc.php and find the following array.
>I need him/her as Non-Active
Open web/codelib/asc/df.fl.(table-name).inc.php and find the following array.
'active'=>array(Change 'reg'=>'Y' to 'reg'=>'N'. The result should look like
XA_CLASS=>'cls_active',
XA_CAPTION=>RSTR_ACTIVE,
XA_INIT_VALUE=>array( 'reg'=>'Y', 'search'=>'Y' ),
XA_REQUIRED=>true,
XA_SELECT_ON_TOP=>STR_SELECT_CAPTION,
XA_SEARCH_OP=>'s=',
XA_LIST=>'(sp)(sr)(fd)(g_reg_save)'
),
'active'=>array(
XA_CLASS=>'cls_active',
XA_CAPTION=>RSTR_ACTIVE,
XA_INIT_VALUE=>array( 'reg'=>'N', 'search'=>'Y' ),
XA_REQUIRED=>true,
XA_SELECT_ON_TOP=>STR_SELECT_CAPTION,
XA_SEARCH_OP=>'s=',
XA_LIST=>'(sp)(sr)(fd)(g_reg_save)'
),
→ Form2DB
I like your script very much ! But I've a little bit problem with this script.
You know very well, when someone filled up this form, it automatically makes him/her "Active".
But, I need him/her as Non-Active until I make him/her "Active" by using my Admin Panel.
It'll look like Registration Approval system.
In order that, I need to change the default value of "Active" field. I need "No" option as default for that field.
Will you please tell me how can I do this ???
I'll be very grateful if u help me.
Thanks.
Tahmidul Haque.
www.facebook.com/programmer.tahmid