hi
I want login to a router. there is a html login page and doesn’t support php. how can i do that?
i use www class for php and it works fine but when i want to do it for html files, it just return entire html code! nothing else!!
any help?
Create a separate php file say ‘login.php’ and add necessary login script there. And in your html file, link the form’s action attribute to this php file.
<form action="login.php" method="post" name="login-form">
...
</form>
By this way you can keep html & php separate.
You can check this article for reference PHP Login and Registration Script with MySQL Example