Hi,
Previously i had included successfully the 'location' field in user registration form. Cause a lot of users don't enter all of their address details I want to split down the 'location' field to let's say these fields:
In registerform.php
$reg_form->addElement(new XoopsFormText(_US_LOCATION_ADDRESS, "user_from_address", 30, 60, $user_from_address), true);
$reg_form->addElement(new XoopsFormText(_US_LOCATION_TOWN, "user_from_town", 30, 60, $user_from_town), true);
$reg_form->addElement(new XoopsFormText(_US_LOCATION_ZIP, "user_from_zip", 30, 30, $user_from_zip), true);
In language/english/user.php I add all the information for _US_LOCATION_ADDRESS etc.
Now in register.php I have added
<input type='hidden' name='user_from_addreess' value='".$myts->makeTboxData4PreviewInForm($user_from_address)."' />
<input type='hidden' name='user_from_town' value='".$myts->makeTboxData4PreviewInForm($user_from_town)."' />
<input type='hidden' name='user_from_zip' value='".$myts->makeTboxData4PreviewInForm($user_from_zip)."' />
But in the database, I want all these fields to be entered as one in 'Location' field. Example:
Location: Address, Town, Zip
What & where should i modify in register.php for this to be done? I know it's easy but i can't make it work. I suspect that has something to do with that line:
$newuser->setVar('user_from', $user_from);
Thank you.