Good all the time.

There is a task. My site has authorization, you need to make sure that when filling in the login and password fields, the user pressed the login button, and it was transferred to another site (in which the logs and password from my site are substituted) and if it is on the site, it immediately flips to Personal Area.

I tried the Kurl, but I can not figure out how to create a request for authorization and redirect the user.

Tell me something sensible.

    3 answers 3

    <form action='' method='get'> Логин: <input type='text' name='login'><br/> Пароль: <input type='password' name='pass'><br/> <input type='submit' name='submit'> </form>` 

    Maybe so?

       <form action="" method="POST"> <input type="text" name="login"> <br> <input type="text" name="password"> <br> <input type="submit" value="Войти"> </form> 

      The names of the login and password fields look in the source code on the site where you need to log in, and replace them! Or if you can just leave a link here where you want to authorize users, I will write you a ready-made form.

        As soon as he wrote, he understood how to do it.

         <form method="post" action=""> <h1>Login</h1><input class="class" type="text" value="Логин" maxlength="20" name="login"></br> <h1>Pass</h1> <input class="class" type="password" maxlength="20" name="pass"></br> <input type="image" value="Войти"> </form> 

        The answer is correct, just my post.