Have a look if there is a DILIMITER field in your phpmyadmin version, just below the SQL editor. Set your delimiter there, for example - '$$', and write this SQL code -
CREATE trigger insert_processor
BEFORE INSERT ON tbl
FOR EACH ROW BEGIN
set new.val = trim(new.val);
set new.val2 = upper(new.val);
END$$