I am doing the group assignment that involves using HTML, CSS, JavaScript and PHP. I am using seperated HTML, then send the form data to a seperated PHP file to handle. But the more I learn about PHP, I feel that I can use pure PHP file to contain HTML data too, more convenient.
For example: I have a html file login.html, it has one <form> element inside the body to login. The form use POST and it leads to processLogin.php
Should i process them separately or to use single processLogin.php that contain a form and contains the php scripts too ?