1
kknewer
Help me to add pulldown menu in registerform,please
  • 2004/4/9 6:24

  • kknewer

  • Just popping in

  • Posts: 4

  • Since: 2004/3/27


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 ?!

Login

Who's Online

224 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits