The site has two html forms: one for registration and the other for logging in registered users. Such a problem: if the browser remembers the login and password in the login form, then it also substitutes this data in the registration form, and it substitutes the wrong one in the email field. How to prevent the browser to substitute data in the form for registration?
<form id="regform" action="" method="post" autocomplete="off"> <p> <input type='text' name='login' id="username" value="" placeholder ="логин" required/> </p> <p> <input type='email' name='email' value="" placeholder ="почта" required/> </p> <p> <input type='password' name='password' value placeholder ="пароль" required/> </p> <p> <center><input type='submit' name='reg' value='Готово'/></center> </p> </form> <form id='login' action='login.php' method='post' autocomplete="off"> <table> <tr> <td>Логин:</td> <td> <input type='text' name='login'/> </td> </tr> <tr> <td>Пароль:</td> <td> <input type='password' name='password'/> </td> </tr> <tr> <td colspan='2'> <br><center><input type='submit' value = 'Войти' /></center> </td> </tr> <tr> <td colspan='2'> <br/><a href="reset.php" class="interfacelink">восстановить пароль</a> </td> </tr> </table> </form> 