title: Dynamically change html Login form to Registration form
body: <p>I have a login form that takes input for user credentials. At the bottom I have a link to a Register user form. It takes me to a whole new page to register a user. However is there a way with JQuery AJAX to change the login form inputs to take registration inputs instead and send to the respective correct processing php files?</p>
  
  <p>My form for login: </p>
  
  <pre><code>&lt;div id="backgroundLogin"&gt;
              &lt;form name="login" method="post" action="./Login.php"&gt;
                 &lt;fieldset&gt;
                    &lt;p id="title"&gt;
                       Connect-a-Cutie Login
                    &lt;/p&gt;
                    &lt;p id="email"&gt;
                       &lt;label&gt; Email:&lt;/label&gt;
                       &lt;input type="text" name="email" placeholder="Type your email..."&gt;
                    &lt;/p&gt;
                    &lt;p id="password"&gt;
                       &lt;label&gt;Password:&lt;/label&gt;
                       &lt;input type="text" name="password" placeholder="Type your password..."&gt;
                    &lt;/p&gt;
                       &lt;button href="./LoginPage.php" type="submit"&gt;Submit!&lt;/button&gt;
                    &lt;p&gt;
                       &lt;a href="RegistrationPage.php"&gt;&lt;p&gt;Not yet a member? Register now!&lt;/p&gt;&lt;/a&gt;
                 &lt;/fieldset&gt;
              &lt;/form&gt;
           &lt;/div&gt;
  </code></pre>
  
  <p>And my registration form:</p>
  
  <pre><code> &lt;form action="RegistrationPage.php" method="POST"&gt;
              Name: &lt;input type="text" name="name" placeholder="Enter your name..."/&gt;&lt;br/&gt;
              Email: &lt;input type="text" name="email" placeholder="Enter your email..."/&gt;&lt;br/&gt;
              Password: &lt;input type="text" name="password" placeholder="Enter your password..."/&gt; (make sure no one is looking...)&lt;br/&gt;
              Addess: &lt;input type="text" name="address" placeholder="Enter your address..."/&gt;&lt;br/&gt;
              Do you want to be an admin? &lt;input type="text" name="isAdmin" placeholder="TRUE or FALSE"/&gt;&lt;br/&gt;&lt;br/&gt;
              &lt;button type="submit"&gt;Submit&lt;/button&gt;
          &lt;/form&gt;
  </code></pre>