The key here is that the callback is using the $_POST values instead of the value passed to it, otherwise it would only have access to either of the two values, but not both at the same time. Let me know how that works out :)