我有一个joomla模块,该模块已经具有joomla注册的默认字段。
我必须添加城市,州,地址等,并将其保存在管理员的joomla用户个人资料下。
如何添加其他字段并将其保存在用户个人资料下?
<div data-tab id="jd-register-container-<?php echo $module->id; ?>" class="jd-register-container">
<?php if ($usersConfig->get('allowUserRegistration')) { ?>
<form action="" method="post" id="registration_form" name="josForm" class="form-validate form-horizontal">
<div class="jd-inputbox-control">
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('COM_USERS_REGISTER_NAME_LABEL'); ?> </label>
<?php endif; ?>
<input tabindex="1" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_REGISTER_NAME_LABEL'); } ?>" type="text" name="jform[name]" id="jform_name" size="20" class="jd-form-input required" required/>
</div>
<div class="jd-inputbox-control">
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('JGLOBAL_USERNAME'); ?> </label>
<?php endif; ?>
<input tabindex="2" type="text" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('JGLOBAL_USERNAME'); } ?>" id="jform_username" name="jform[username]" size="20" class="jd-form-input required" required/>
</div>
<div class="jd-inputbox-control">
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('JGLOBAL_PASSWORD'); ?> </label>
<?php endif; ?>
<input tabindex="3" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('JGLOBAL_PASSWORD'); } ?>" class="jd-form-input required" type="password" id="jform_password1" name="jform[password1]" size="20" value="" required/>
</div>
<div class="jd-inputbox-control">
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('COM_USERS_REGISTER_PASSWORD2_DESC'); ?> </label>
<?php endif; ?>
<input tabindex="4" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_REGISTER_PASSWORD2_DESC'); } ?>" data-rule-equalTo="#jform_password1" class="jd-form-input required" type="password" id="jform_password2" name="jform[password2]" size="20" value="" required/>
</div>
<div class="jd-inputbox-control">
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('COM_USERS_REGISTER_EMAIL1_DESC'); ?> </label>
<?php endif; ?>
<input tabindex="5" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_REGISTER_EMAIL1_DESC'); } ?>" type="email" id="jform_email1" name="jform[email1]" size="20" class="jd-form-input validate-email required email" required/>
</div>
<div class="jd-inputbox-control">
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('COM_USERS_REGISTER_EMAIL2_DESC'); ?> </label>
<?php endif; ?>
<input tabindex="6" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_REGISTER_EMAIL2_DESC');} ?>" type="email" id="jform_email2" name="jform[email2]" size="20" class="jd-form-input required email" data-rule-equalTo="#jform_email1" required/>
</div>