x1halo1x Posted December 11, 2010 Share Posted December 11, 2010 Okay well theres probably a simple solution to this that i'm missing here but here it goes. on my site i have a login located at the top of the page to add a quick and easy access to the clients account. It styled in CSS but heres the problem. when you put in the correct user name and pw is comes to the follow page saying it is incorrect. any takes on this? Here's the code <form action="the domain with whmcs/dologin.php" method="post" id="login-form"> <fieldset> <span class="text"> <input type="text" value="Username" onFocus="if(this.value=='Username'){this.value=''}" onBlur="if(this.value==''){this.value='Username'}"> </span> <span class="text"> <input type="password" value="Password" onFocus="if(this.value=='Password'){this.value=''}" onBlur="if(this.value==''){this.value='Password'}"> </span> <a href="#" class="login" onClick="document.getElementById('login-form').submit()"><span><span>Login</span></span></a> <span class="links"><a href="the domain with whmcs/pwreset.php">Forgot Password?</a><br/><a href="the domain with whmcs/register.php">Register</a></span> </fieldset> </form> 0 Quote Link to comment Share on other sites More sharing options...
x1halo1x Posted December 11, 2010 Author Share Posted December 11, 2010 Okay i fixed the login issue can't believe i didn't catch it but heres the correct version for those of you who have a css styled login that are having the same issue. Dont forget to grab your token key from the integration code provided by WHMCS <form method="post" action="your domain/whmcs/dologin.php?goto=clientarea" id="login-form"> <input type="hidden" name="token" value="your WHMCS Token" /> <fieldset> <span class="text"> <input type="text" name="username" size="50" value="Username" onFocus="if(this.value=='Username'){this.value=''}" onBlur="if(this.value==''){this.value='Username'}"> </span> <span class="text"> <input type="password" name="password" size="20" value="Password" onFocus="if(this.value=='Password'){this.value=''}" onBlur="if(this.value==''){this.value='Password'}"> </span> <a href="#" class="login" onClick="document.getElementById('login-form').submit()"><span><span>Login</span></span></a> <span class="links"><a href="your domain/whmcs/pwreset.php">Forgot Password?</a><br/><a href="your domain/whmcs/register.php">Register</a></span> </fieldset> </form> 0 Quote Link to comment Share on other sites More sharing options...
dover Posted January 7, 2011 Share Posted January 7, 2011 But what is the token key? My external login is working without it 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.