Username: Password:

Publish a link as a submit button

<form method="POST" action="auth/signin"> Username: <input name="username" type="text" value=""/> Password: <input name="password" type="password" value=""/> <a href="auth/signin">Log In</a> </form> 

How can I publish the parameters when I click on the "Login" link (instead of the "Submit" button)?

+4
source share
1 answer

I think you need Javascript, something like this:

 <a href="javascript:document.yourform.submit();">Log In</a> 
+6
source

Source: https://habr.com/ru/post/1301231/


All Articles