View Full Version : PHP Login Security

05-18-2011, 04: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


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

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




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


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum