I was having a bash at it and am really stuck at the redirect. No matter what variation I try (including the header command), it always says The requested URL /Z was not found on this server. The code snippet is. function btnLogInClick($sender, $params) { redirect('unit1.php?id='); exit(); } Rohit