343
i modified the edituser.php to change user_icq to sex...
here's what i change in edituser.php
$icq_text = new XoopsFormSelect(Sex, 'user_icq', $xoopsUser->getVar('user_icq'));
$icq_text->addOptionArray(array('Male'=>Male, 'Female'=>Female));
The option display successfully in edituser.php & in userinfo
so now i want to include this option in register.php here's what i've done so far...
in include/registerform.php
i put this
$reg_form->addElement(new XoopsFormSelect(Sex, 'user_icq', $user_icq));
in register.php
i use this to display the sex option in register.php
$user_icq = (isset($_POST['user_icq']) && intval($_POST['user_icq']));
This result an empty drop down.....
how to modify this last line of code so it will display the drop down option Male and Female
$user_icq = (isset($_POST['user_icq']) && intval($_POST['user_icq']));
thanks
I Love Xoops