Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Hard to tell. Did you define a field on the form with the name login?
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment

    Working...
    X