geschenk wrote:
> you could simply compare the submitted username &
password field values using
> an IF-ELSE statement, and if the password equals the
username, tell him
> something
😉 What�s your server model,
PHP, ASP, CF ?
It says PHP in the subject line, so PHP it is.
if ($_POST) {
if ($_POST['username'] == $_POST['password']) {
$error = '<p>You cannot use your username as the
password</p>';
}
else {
// Insert Record server behavior code goes here
}
}
In the form itself:
<?php if (isset($error)) echo $error; ?>
--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/