There are 4 files: index.php (main), form_login.php (form with verification of login and password), reg.php (new page in which registr.php file is connected), registr.php (registration form with verification of parameters) . Please tell me how to merge all these files? For example, how to process a link so that when you click on it, the registration form loads in the same window? Here is the link code
<FORM method="POST" target="_self"> </A></A>Логин:<INPUT type="text" name="log">Пароль:<INPUT type="password" name="par"><INPUT type="submit" name="vhod" value="Войти"> <A href="registr.php"><FONT size="2">Регистрация</FONT></A> </FORM>
After all, in order to load the form, you must unload the information that was before it. How to do this using PHP without using AJAX?