...

View Full Version : PHP Login Security



ABizC
05-18-2011, 05:08 PM
Can anyone make this script any more secure ???
It is for a Unique and One Off, New Business Branding Request, Contract and Response







<?php

// Define your username and password
$username = "abizc";
$password = "pa55word";

if ($_POST['txtUsername'] != $username || $_POST['txtPassword'] != $password) {

?>

<h1>Login</h1>

<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>

</form>

<?php

}
else {

?>

<p style="font-size: 18px">Congratulations !</p>
<p style="font-size: 18px">Your Business Branding Contract has been Accepted. If you are happy with the Deatails listed below and agree to the Terms, then please call us on 0123 456 789 to get started !</p>

<?php

}

?>

ABizC
05-18-2011, 05:09 PM
The webpage address is:

http://www.abizc.co.uk/sj5g982s5h6.php



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum