i know you're trying to help, but you're misreading this whole thing.forgot about this
By the way you should be using stripos not strposI could just use proper case and it'll go straight round your check