SyntaxFix
Write A Post
Hire A Developer
Questions
Give the submit buttons for both forms different names and use PHP to check which button has submitted data.
Form one button - btn1 Form two button -btn2
PHP Code:
if($_POST['btn1']){ //Login }elseif($_POST['btn2']){ //Register }