PHP password login

Would this PHP script be considered a reasonably secure login method to view a web page?


// Define your username and password 
$username = "someuser"; 
$password = "somepassword";
if ($_POST['txtUsername'] != $username || $_POST['txtPassword'] != $password) {
<form name="form" method="post" action="<?php echo$_SERVER['PHP_SELF']; ?>">
<p><label for="txtUsername">Username:</label>
<br /><input type="text" title="Enter your Username" name="txtUsername" /></p>
<p><label for="txtpassword">Password:</label>
<br /><input type="password" title="Enter your password" name="txtPassword" /></p>
<p><input type="submit" name="Submit" value="Login" /></p>
else {
<p>This is the protected page. Your private content goes here.</p> 

dynamo mailing list
Update your subscriptions at: