I have a joomla site.I have a problem with the login form for the template, users can't login .if I put the module form it works fine is the anything wrong with the codes?below is the code.
<?php
$registration_enabled = $mainframe->getCfg( 'allowUserRegistration' );
$pretext = @$params->pretext ? $params->pretext : '';
$posttext = @$params->posttext ? $params->posttext : '';
$return = mosGetParam( $_SERVER, 'REQUEST_URI', null );
if ($my->id) {
echo "<font color=#10428B>"._USERNAME.":</font> ";
echo $my->username;
?> |
<a href='<?php echo sefRelToAbs("index.php?option=logout&return=$return"); ?>'><b><?php echo _BUTTON_LOGOUT; ?></b></a>
<?php
} else {
?>
<form action="<?php echo sefRelToAbs("index.php?option=login"); ?>" method="post" name="login">
<TABLE WIDTH="85%" align=center CELLPADDING="0" CELLSPACING="0">
<TR>
<?php
$registration_enabled = $mainframe->getCfg( 'allowUserRegistration' );
$pretext = @$params->pretext ? $params->pretext : '';
$posttext = @$params->posttext ? $params->posttext : '';
$return = mosGetParam( $_SERVER, 'REQUEST_URI', null );
if ($my->id) {
echo "<font color=#10428B>"._USERNAME.":</font> ";
echo $my->username;
?> |
<a href='<?php echo sefRelToAbs("index.php?option=logout&return=$return"); ?>'><b><?php echo _BUTTON_LOGOUT; ?></b></a>
<?php
} else {
?>
<form action="<?php echo sefRelToAbs("index.php?option=login"); ?>" method="post" name="login">
<TABLE WIDTH="85%" align=center CELLPADDING="0" CELLSPACING="0">
<TR>






