Leolux wrote:
> This works - but in the server behavior panel I find two
entries for the
> Log in behavior and I've got an alert that Dreamweaver
cannot differ
> between the "two behaviors", although there is only one.
>
> Is there something wrong with my code?
No, but by changing the code of a Dreamweaver server
behavior, DW can no
longer recognize it, so it displays the error message.
Get rid of what you have at the moment. Apply the login user
server
behavior again, and select the login page as the page to go
to when the
login fails. Assuming it's called login.php, use this as the
value:
login.php?fail=true
Insert this in the body of the page:
<?php if (isset($_GET['fail'])) {
echo '<p>Wrong username or password</p>';
}
?>
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/