Hi,
I’m having real problems with the weblogin. When i enter my web users name and password and i hit ’enter’ nothing happens. When i click on the ’forgotten password’ link, the page jumps to the index.php page.
I’ve taken out the attribute of ’name’ and added ’id’ (if it wasn’t already there) for XHTML validation puposes.
Here’s my chunk code called FormLogin:
<!-- #declare:separator <hr> -->
<!-- login form section-->
<form method="post" action="[+action+]" id="clientlogin">
<!--<input type="hidden" value="[+rememberme+]" name="rememberme" />-->
<fieldset>
<h3>Client Area</h3>
<input type="text" id="username" class="field" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" value="username" />
<input type="password" class="field" id="password" tabindex="2" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" value="password" />
<!--<input type="checkbox" id="checkbox_1" name="checkbox_1" tabindex="3" size="1" value="" [+checkbox+] onclick="webLoginCheckRemember()" /><label for="checkbox_1" class="checkbox">Remember me</label>-->
<input type="submit" value="Go" id="cmdweblogin" class="submit"/>
<a href="#" onclick="webLoginShowForm(2);return false;" id="forgotpsswd">Forget Your Password?</a>
</fieldset>
</form>
<hr>
<!-- log out hyperlink section -->
<h4>You're already logged in [+username+]</h4>
Do you wish to <a href="[+action+]" class="button">[+logouttext+]</a>?
<hr>
<!-- Password reminder form section -->
<form name="loginreminder" method="post" action="[+action+]" id="clientlogin2">
<fieldset>
<h3>Forgotten Password?</h3>
<input type="hidden" id="txtpwdrem" value="0" />
<label for="txtwebemail">Enter your account email address to reset your password: <input type="text" name="txtwebemail" id="txtwebemail" class="field"/></label>
<label>To return to the login form, press the cancel button.</label>
<input type="submit" value="Go" id="cmdweblogin" class="submit" /> <input type="reset" value="Cancel" name="cmdcancel" onclick="webLoginShowForm(1);" class="cancel" style="clear:none;display:inline" />
</fieldset>
</form>
On the weblogin.inc.php i have just taken out the javascript at around line 30, and replaced with <script type="text/javascript" src="assets/snippets/weblogin/weblogin.js"></script>. I have pasted the javascript into a file called weblogin.js
The call appears in a ’left column’ chunk as follows:
[!WebLogin? &tpl=`FormLogin` &loginhomeid=`[(site_start)]`!]
Can anyone help??
Thanks
J