1
Hello
In my Code if i use
le="color: #000000"><?php new XoopsFormHidden
for Somereason the Form dose not include the $id Value . but if i use
le="color: #000000"><?php new XoopsFormText
it works and includes the ID value .. but i need it hidden .
after posting with new XoopsFormHidden
the resualt like
http://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=1this is the Code with new XoopsFormText which i do not want i want it to work with new XoopsFormHidden
le="color: #000000"><?php $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();