Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Q2A Core by


I have a simple html form for user login/register. It looks like this:

    <div class="form" action="login.php" method="post">
    <form class="register-form">
      <input type="text" placeholder="Username"/>
      <input type="password" placeholder="Password"/>
      <input type="text" placeholder="Email address"/>
      <input type="text" placeholder="Full Name"/>
      <input type="text" placeholder="Bar #"/>
      <button type="submit">create</button>
      <p class="message">Already registered? <a href="#">Sign In</a></p>
    <form class="login-form">
      <input type="text" placeholder="username"/>
      <input type="password" placeholder="password"/>
      <button type="submit">login</button>
      <p class="message">Not registered? <a href="#">Create an account</a></p>

This form sits on my intro splash page. Part of the website is external content, and part of the website is Q2A. The goal is to restrict access to content on the external part of the webpage unless people are logged into Q2A. I've figured out how to do that. 

What I can't seem to figure out, is how to allow someone to use the form pasted above to login or register to Q2A. Any help would be greatly appreciated. I've read through the documentation and I can't seem to wrap my head around it. :( I hate to be that guy, but I really need someone to hold my hand a little here and walk me through it. Once I get the idea, I can run with it on my own. 

Q2A version: latest

Please log in or register to answer this question.