467,926 Members | 1,457 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,926 developers. It's quick & easy.

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.
Dec 18 '20 #1
  • viewed: 3635
Share:
2 Replies
Expert 256MB
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.
Dec 18 '20 #2
32bit
I would say do something like the following:

Expand|Select|Wrap|Line Numbers
  1. <?php 
  2. $_POST['foo'] = $foo
  3. //etc. 
  4. ?>
  5. <!DOCTYPE html>
  6. <head>
  7. </head>
  8. <body>
  9.  <form name="some form" method="post" action="" >
  10. <input type="text" id="foo" name="foo" />
  11. </form>
  12. </body>
  13. </html>
  14.  
2 Weeks Ago #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by David Krussow | last post: by
7 posts views Thread by Grant Merwitz | last post: by
15 posts views Thread by carr4895 | last post: by
13 posts views Thread by knot2afrayed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.