Hello, I am working on my PHP final. It is using MVC.
I am trying to get a login page to work. When I click login, it just refreshes the page.
Here is the form:
< form action="…" method=“post”>
< input type=“hidden” name=“action” value=“login”>
< label id=“login-label”>Email:
< input id=“login-input” type=“text” name=“email” required=“required”>
< br>
< label id=“login-label”>Password:
< input id=“login-input” type=“password” name=“password” required=“required”>
< br>
< label>
< input type=“submit” id=“login-btn” value=“Login”>
< /form>
-root
-index.php
-view
-login.php
I am thinking my < form action="…" method=“post”> is incorrect, but I’m not finding an alternative.
THERE ARE TWO PERIODS IN THE FORM ACTION, FOR SOME REASON IT IS DISPLAYING THREE