I’m trying to solve a problem pertaining to PHP.
So far I have created an html login form login.html and a PHP file login-insert.php. I’m having trouble detecting if the username already exists in the database created using phpmyadmin. I’m very new to coding in PHP so any help is appreciated
Please refer to link for PHP and html code https://liveweave.com/rAE7Cy
2
Answers
Step 1
create a file
config.php
Step 2
create another file
login.php
Change your file name with the extension login.php instead of login.html and then send the variable value through ajax in the same page