ok, so you'v created a database named "ubunreal" and 2 fields called "uname" and "upassword" . When you pass 2 variables ("$u_name" & "$u_password") to the code, it searched the specified Databse and displays the relevant output as to whether the user was found or not and sets the cookie if needed.

am i correct in saying that this works for you ?

cos right now i am going to emptly my IE temp files and try once more, if it doesnt work I'm not going to be happy with me.