Jump to content

Css Login (outside) of WHMCS


x1halo1x

Recommended Posts

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> 

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated