Hi,
I have modified the Event template and want the admin to be able to add users and passwords to the login table manually from his add clients page, table name _clients. The fields in his clients table are Clientid for the clients name and clientpass for the clients password and I am tying to pass them to the login table fields Username and Password.However after i press add record on the clients page I get the message undefined variable "Username" I have copied event code here, but i think it may be that i am not using the correct varibale names for login page for this template. Here is my event code.
global $conn;
$strSQLInsert = "insert into `login`(`Username`,`Password`) values ('".$Username["Clientid"]."','".$Password["clientpass"]."')";
db_exec($strSQLInsert,$conn);
return true;