run scipt on html webpage
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?
Answer by Sunnyjones · Dec 05, 2016 at 02:09 AM
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 http://www.kodingmadesimple.com/2016/01/php-login-and-registration-script-with-mysql-example.html
Your answer
Follow this Question
Related Questions
Uploading Wav Audio File to Server 1 Answer
WWW not working on my PHPs 0 Answers
How to load HTML page inside unity game? 1 Answer
WWW Class silent crach 1 Answer
i need help unity get data from php 0 Answers