I’m currently developing a Web platform app in HTML and PHP stuff. I have to develop a registration/login system, and I’m asking myself a question.
I wrote a login form, and I would like to know if is it better to store it in a php function (with a simple echo(“all my login form”)) or to store it in a .html file. Obviously, the call or the concerned include() will be written in a if($_session()) statement.
I’m just asking about the correct and logical architecture aspect I should follow.
Because you’re designing something serious i recommend you to use include instead of functions. Why?