In my Code if i use
new XoopsFormHidden
for Somereason the Form dose not include the $id Value . but if i use
new XoopsFormText
after posting with new XoopsFormHidden
the resualt likehttp://localhost/xoops/modules/test/index.php?id=
but with new XoopsFormText , i get exactly wht i want
http://localhost/xoops/modules/test/index.php?id=1
this is the Code with new XoopsFormText which i do not want i want it to work with new XoopsFormHidden
$myts =& MyTextSanitizer::getInstance();
$id = $myts->makeTboxData4Save($_POST["id"]);
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$xoopsTpl->assign('form1', $form = new XoopsThemeForm(_MI_SEND, "form1", "send.php"));
$xoopsTpl->assign('id', $the_id = new XoopsFormText(_MI_ID, "id", '', '', $id));
$xoopsTpl->assign('id', $form->addElement($the_id));
$xoopsTpl->assign('send', $submit = new XoopsFormButton("", "submit", _MI_SENDNOW, "submit"));
$xoopsTpl->assign('send', $form->addElement($submit));
$form->display();