1
Hi, im writing my module, i have a problem, a create a form in admin panel , in this form admin type the "welcome message", here is code of this form:
$my_form = new XoopsThemeForm(_AU_SELECT_ABOUT, "form", "aabout.php");
$my_form->addElement(new XoopsFormDhtmlTextArea (_AU_ADMINMESSAGE, "admintresc", $admintresc, $rows=20, $cols=50),true);
$button_tray = new XoopsFormElementTray('' ,'');
$button_tray->addElement(new XoopsFormButton('', 'post', _AU_OK,'submit'));
$button_tray->addElement(new XoopsFormButton('', 'reset',_AU_RESET,'reset'));
$my_form->addElement($button_tray);
$my_form->display();
now i want to put message typed in form to database, but the new message have to overwrite old message which is in database.
Can someone help me? I have not rights to write on forum dev.xoops.org so im writing here, thx for help. kurak_bu