SCRIPTCASE Courses - Part 7 - Control, Calendar and Blank - 12:38 min.

following along with video i coded this in Events - onValidate
and ran same code as video… video works, mine does not
any help would be appreciated.

thank you, john

IF (({login} == ‘admin’) && ({pswd} == ‘admin’))
{
[global_usr] = {login};
sc_redir(menu.php);
}
ELSE
{
sc_error_message(“Invalid Login/Password”);
}

DROP TABLE IF EXISTS sc_users;
CREATE TABLE sc_users (
login varchar(15) NOT NULL DEFAULT ‘’,
pass varchar(15) NOT NULL DEFAULT ‘’,
name varchar(64) DEFAULT NULL,
email varchar(64) DEFAULT NULL,
active varchar(1) DEFAULT NULL,
PRIMARY KEY (login)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ERROR MESSAGE:

Undefined variable: login
Invalid Login/Password

Hard to tell. Did you define a field on the form with the name login?