Hi everybody
I really need your help to solve my registerform's problems.
I modified registerform in order to add pulldown options,because I want to add Birthday pulldown option in my registerform for newuser,so I modified and add some scripts like this:
-----------------------------------------------------------------
$bbubirth_yy_select = isset($HTTP_POST_VARS['bbubirth_yy_select']) ? $HTTP_POST_VARS['bbubirth_yy_select'] : "";
$bbubirth_yy_select = new XoopsFormSelect( "", "bbubirth_yy_select", $bbubirth_yy_select);
$bbubirth_yy_select->addOptionArray(array('3???','4???','5???','6???'));
$bbubirth_mm_select = isset($HTTP_POST_VARS['bbubirth_mm_select']) ? $HTTP_POST_VARS['bbubirth_mm_select'] : "";
$bbubirth_mm_select = new XoopsFormSelect( "", "bbubirth_mm_select", $bbubirth_mm_select);
$bbubirth_mm_select->addOptionArray(array('1?','2?','3?','4?','5?','6?','7?','8?','9?','10?','11?','12?'));
$bbubirth_dd_select = isset($HTTP_POST_VARS['bbubirth_dd_select']) ? $HTTP_POST_VARS['bbubirth_dd_select'] : "";
$bbubirth_dd_select = new XoopsFormSelect( "", "bbubirth_dd_select", $bbubirth_dd_select);
$bbubirth_dd_select->addOptionArray(array('1?','2?','3?','4?','5?','6?','7?','8?','9?','10?','11?','12?','13?','14?','15?','16?','17?','18?','19?','20?','21?','22?','23?','24?','25?','26?','27?','28?','29?','30?','31?'));
$bbubirth_tray = new XoopsFormElementTray(_US_YBIRTHDAY, " ");
$bbubirth_tray->addElement($bbubirth_yy_select);
$bbubirth_tray->addElement($bbubirth_mm_select);
$bbubirth_tray->addElement($bbubirth_dd_select);
-----------------------------------------------------------------
it works,these pulldown options can show on registerform but can not store in MySql database when I chose.
What should I do ?
It's really important to me and I really want to this pulldown option in registerform, can anybody help me ?!