1
kurak_bu
How to insert data form form to DB??
  • 2006/4/25 17:01

  • kurak_bu

  • Quite a regular

  • Posts: 342

  • Since: 2005/9/5 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

2
gestroud
Re: How to insert data form form to DB??
  • 2006/4/26 14:29

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


kurak_bu,

Is your form actually called aabout.php, or about.php?

3
kurak_bu
Re: How to insert data form form to DB??
  • 2006/4/26 15:21

  • kurak_bu

  • Quite a regular

  • Posts: 342

  • Since: 2005/9/5 1


now i know that i have to create another page, like "post.php" , aabout mean admin-about , about is on user side, aabout is a page in admin folder.

4
kurak_bu
Re: How to insert data form form to DB??
  • 2006/4/27 7:39

  • kurak_bu

  • Quite a regular

  • Posts: 342

  • Since: 2005/9/5 1


OK, i solved the problem by myself.

Login

Who's Online

399 user(s) are online (281 user(s) are browsing Support Forums)


Members: 0


Guests: 399


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits