+ 1

HTML and PHP form handling?

Whenever I put in a form in html and set the action as the php file name, it never works. It always just puts the php code which i put in it on the web page. My code: <!DOCTYPE html> <html> <head> </head> <body> <form action="form.php" method="post"> <input type="text" name="username" placeholder="username"> <input type="password" name="password" placeholder="password"> <input type="submit" value="submit"> </form> </body> </html> and in my php file (form.php) i put: <?php echo "Hi Your Password is blablablabla"; ?> So it will show the form with no problem whatsoever. But when i press the submit button it will show this <?php echo "Hi Your Password is blablablabla"; ?>

21st Mar 2018, 5:47 PM
Someone Else
Someone Else - avatar
1 ответ
21st Mar 2018, 6:30 PM
Toni Isotalo
Toni Isotalo - avatar