I'm trying to learn to program with PHP, and i got XAMPP. I watched a tutorial on youtube.
It should say, ''Please enter a username and a password''. But instead it just shows a blank page. My index=
<html>
<form action='login.php' method='post'>
Username: <input type='text' name=úsername'><br>
Password: <input type='password'name='password'><br>
<input type='submit' value='log in'>
</form>
</html>
My Login.PHP
<html>
<?php
$username = $_POST('username');
$password = $_POST('password');
if ($username&&$password)
{
$connect = mysql_connect ("localhost","root","") or die("Couldn't connect");
mysql_select_db("phplogin") or die("Couldn't find db");
}
else
die("Please enter a username and a password");
?>
</html>
I added the <html> and </html> in my login.php because when i opened my project in chrome, the login.php just gave the full code.