Hi,
im having trouble i managed to create a password field and got everything working i then changed my mind and wanted to add a username field on to the login.
im getting the following error and i have tried both && and || yet none seem to work
Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ',' or ')' in cms/admin/news.php on line 5
if (isset($_POST['username'] && $_POST['password']) ) {
if ($_POST['username'] == 'admin' || $_POST['password'] == 'admin') {
$password = $_POST['username'];
$password = md5($_POST['password']);
}
else {
$username = $_POST['username'];
$password = $_POST['password'];
}