insert into db after an event

insert into db after an event

بواسطة - walid touati
عدد الردود: 1
i'm a student and i'm trying to develop a module for moodle.
Until now, i've developped all the interfaces using formlib but i can't find how to transfer the data writted in my forms to my database after un event(click,submit..)
for example:
we write
addElement(text,...);
addElement(text,..);
addElement(button,..);
// what i must write to insert data writted in my textbox to the database after a click
// on the button
{
insert_record()..
}
the attached file contain my code(if somebody can correct it)
a feedback will be apreciated,
thanks in advance, best regards
متوسط التقييمات: -