Saltar al contenido

Registro de Usuario en Joomla solo correo email

<?php // no direct access
defined(‘_JEXEC’) or die(‘Restricted access’); ?>
<script type=»text/javascript»>
<!–
Window.onDomReady(function(){
document.formvalidator.setHandler(‘passverify’, function (value) { return ($(‘password’).value == value); }    );
});
// –>
</script>

<script type=»text/javascript»>
function validarRegistro(){
correo=document.getElementById(‘email’).value;
if(correo==»){
document.getElementById(‘email’).focus();
return false;
}

document.getElementById(‘username’).value = correo;
document.josForm.submit();
return true;
}
</script>

<?php
if(isset($this->message)){
$this->display(‘message’);
}
?>

<form action=»<?php echo JRoute::_( ‘index.php?option=com_user’ ); ?>» method=»post» id=»josForm» name=»josForm»>

<?php if ( $this->params->def( ‘show_page_title’, 1 ) ) : ?>
<div><?php echo $this->escape($this->params->get(‘page_title’)); ?></div>
<?php endif; ?>

<table cellpadding=»0″ cellspacing=»0″ border=»0″ width=»100%»>
<tr>
<td width=»30%» height=»40″>
<label id=»namemsg» for=»name»>
<?php echo JText::_( ‘Name’ ); ?>:
</label>
</td>
<td>
<input type=»text» name=»name» id=»name» size=»40″ value=»<?php echo $this->escape($this->user->get( ‘name’ ));?>» maxlength=»50″ width=»300px» /> *
</td>
</tr>
<!–<tr>
<td height=»40″>
<label id=»usernamemsg» for=»username»>
<?php //echo JText::_( ‘User name’ ); ?>:
</label>
</td>
<td>–>
<input type=»hidden» id=»username» name=»username» size=»40″ value=»<?php //echo $this->escape($this->user->get( ‘username’ ));?>» maxlength=»25″ /> *
<!–</td>
</tr>–>
<tr>
<td height=»40″>
<label id=»emailmsg» for=»email»>
<?php echo JText::_( ‘Email’ ); ?>:
</label>
</td>
<td>
<input type=»text» id=»email» name=»email» size=»40″ value=»<?php echo $this->escape($this->user->get( ‘email’ ));?>» maxlength=»100″ /> *
</td>
</tr>
<tr>
<td height=»40″>
<label id=»pwmsg» for=»password»>
<?php echo JText::_( ‘Password’ ); ?>:
</label>
</td>
<td>
<input width=»280″ type=»password» id=»password» name=»password» size=»40″ value=»» /> *
</td>
</tr>
<tr>
<td height=»40″>
<label id=»pw2msg» for=»password2″>
<?php echo JText::_( ‘Verify Password’ ); ?>:
</label>
</td>
<td>
<input width=»280″ type=»password» id=»password2″ name=»password2″ size=»40″ value=»» /> *
</td>
</tr>
<tr>
<td colspan=»2″ height=»40″>
<?php echo JText::_( ‘REGISTER_REQUIRED’ ); ?>
</td>
</tr>
</table>
<button  onclick=»validarRegistro();»; align=»center» type=»button»><?php echo JText::_(‘Register’); ?></button>
<input type=»hidden» name=»task» value=»register_save» />
<input type=»hidden» name=»id» value=»0″ />
<input type=»hidden» name=»gid» value=»0″ />
<?php echo JHTML::_( ‘form.token’ ); ?>
</form>


Si te ha interesado este artículo y deseas un apoyo o asesoría en algún requerimiento, envíame un mensaje a: (info@juliopari.com) o sino a través de Linkedin: https://www.linkedin.com/in/juliopari/