4
Actually it did not work, oops.
I did not want a reset button to clear the fields but a cancel button to take me back where I were before.
I looked in this forum submit form (that has a cancel post button) and into the formbutton.php and I got my answer:
$button_tray = new XoopsFormElementTray('' ,'');
$submit_btn = new XoopsFormButton('', 'post', _MD_XTL_POST, 'submit');
$submit_btn->setExtra('accesskey="s"');
$button_tray->addElement($submit_btn);
$cancel_btn = new XoopsFormButton('', 'cancel', _MD_XTL_CANCEL, 'button');
$cancel_btn->setExtra('accesskey="c"');
$cancel_btn->setExtra('onclick='location="mymodules.php"'');
$button_tray->addElement($cancel_btn);
$sform->addElement($button_tray);
Anyway thanks a lot for your time suico!