Quantcast
Channel: WHMCS Community Forums
Viewing all articles
Browse latest Browse all 13458

External login....Is it really that complicated?

$
0
0
I've been digging through threads for days and I still can't find the snippets I'm looking for.

My current external login form looks like this:
Code:

        <div id="login-popup">
                <span class="login-pop-up-icon"></span><div>Client Login</div>
                <form action="login.php" method="POST">
                        <input type="text" placeholder="username" name="username" required>
                        <input type="password" placeholder="password" name="password" required>
                        <input type="submit" value="login">
                        <div><a href="recover.php">forgot password?</a></div>
                </form>


I want to make this login work just like the standard login, where it logs the user in and directs them to the client area. And if they're already logged in then how can I make it redirect them to the client area?

I hate to be spoon fed, but I've spent hours going through other examples of snippets and such and I just can't seem to find what I'm looking for.

Thanks in advance guys!

Viewing all articles
Browse latest Browse all 13458

Trending Articles