How to display login form in php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marikelis47
    New Member
    • Dec 2020
    • 1

    How to display login form in php

    How to display the login form right on the home page with the url parameter but not to redirect that form to another page, it's just on the home page when clicked. I used mvc for my project. Thanks for Reading.
    Last edited by Rabbit; Feb 21 '21, 07:47 PM. Reason: External link removed
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    How to display the login form right on the home page with the url parameter but not to redirect that form to another page, it's just on the home page when clicked.
    From what I understand after reading the text, I think you're looking for a modal popup with maybe the asynchronous form submission.

    Comment

    • bakertaylor28
      New Member
      • Feb 2021
      • 45

      #3
      I would say do something like the following:

      Code:
      <?php 
      $_POST['foo'] = $foo
      //etc. 
      ?>
      <!DOCTYPE html>
      <head>
      </head>
      <body>
       <form name="some form" method="post" action="" >
      <input type="text" id="foo" name="foo" />
      </form>
      </body>
      </html>
      Last edited by bakertaylor28; Feb 21 '21, 05:34 PM. Reason: correct code

      Comment

      Working...