I have two simple files
forms.php
<html>
<head>
<title> Forms </title>
</head>
<body>
<form action ="process.php" method="POST">
username: <input type = "text"
name = "username" value =""> <br/>
password: <input type = "password"
name = "password" value =""> <br/> <br/>
<input type = "submit" name = "submit" value ="Submit"><br/>
</form>
</body>
</html>
and process.php
<html>
<head>
<title> Form Processing </title>
</head>
<body>
<?php
$username = $_POST['username'];
$password = $_POST['password'];
echo "{$username}: {$password}";
?>
</body>
</html>
When I run the forms.php using phpdev it works...
I submit the user name and password and then it gives me this error running the process.php
Notice: Undefined index:username in c:\xampp\My Php Files\process.php on line 7
Notice: Undefined index:password in c:\xampp\My Php Files\process.php on line 8
Can anyone please tell me what I am doing wrong?
Thanks