O
O
Oleg Komenda2018-02-22 13:13:17
PHP
Oleg Komenda, 2018-02-22 13:13:17

How to change form on click?

I made 2 forms (login and registration ) :
Zhmyak

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
twobomb, 2018-02-22
@rafamont

index.php from line 21 replace with

<?php
    if($_SERVER["REQUEST_METHOD"] == "GET")
      if(isset($_GET["registration"]))
        require("parts/registr.php");
      else
        require("parts/login.php");
    ?>

login.php line 11 register.php line 12
<a href="?auth">Аuthorization</a>

D
Dymok, 2018-02-22
@UnluckySerivelha

jquery tabs

A
Andrey Fedorov, 2018-02-22
@aliencash

Because you didn't include js in the question tags...
https://codepen.io/aliencash/pen/wyXPwJ?editors=1100#0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question